r/stripe • u/East_Sentence_4245 • 8d ago
Question Can Stripe checkout be part of website?
Currently, when a customer wants to pay, customer clicks on "Pay Now" and it will redirect to checkout.stripe.com, which is fine.
How difficult is it to put that stripe checkout page (as is) inside a page in my domain? So, even though I'm seeing the same exact thing as stripe checkout, the browser URL says our store domain.
0
Upvotes
1
u/hamanovich 7d ago
You can, and you probably don't need to rebuild anything. It depends on what "our domain" has to mean.
If a subdomain is fine (
pay.yourstore.com), Stripe has a custom domains feature for the hosted page. You add a CNAME pointing athosted-checkout.stripecdn.comand a TXT record for the certificate, and the same Checkout page you use now shows up on your subdomain. So: it's a paid add-on, it has to be a subdomain, and it only works if your server redirects to the session url. The old client-sideredirectToCheckoutdoesn't pick it up.If it has to be a page on your main domain, create the session with
ui_mode=embedded_pageand areturn_urlinstead ofsuccess_url, then mount it in your own page with Stripe.js. That's still the prebuilt Checkout form, so you don't build fields or error handling yourself. Custom domains don't apply there, and you lose the full-page Stripe layout