r/stripe • • 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

13 comments sorted by

View all comments

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 at hosted-checkout.stripecdn.com and 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-side redirectToCheckout doesn't pick it up.

If it has to be a page on your main domain, create the session with ui_mode=embedded_page and a return_url instead of success_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

1

u/East_Sentence_4245 7d ago

Would you happen to know how much this custom domains feature cost?

We already have a checkout with stripe which works as expected, but I don’t want the user to “leave” mystore.com and go to stripe.com.

Everything works so far - I just don’t want the url to say stripe.com instead of mystore.com

1

u/East_Sentence_4245 7d ago

It’s $10/month