Your checkout return URL is an open redirect unless you pin the origin

Building success_url from the request's Origin header lets a stranger mint a genuine payment page on your own Stripe account that returns the payer to a site they control.

Is it safe to build a Stripe success_url from the Origin header?

No. The Origin header is set by the caller, so anyone who can reach your checkout endpoint can create a real payment page on your account whose return URL points at a site they control — with your domain in the payer's history right before it. Accept the header only when it matches your canonical origin, allow localhost for development, and fall back to the canonical origin in every other case.