#sunnylbk
1 messages ยท Page 1 of 1 (latest)
Hi ๐ you would have your Buy button create and redirect your customer to a Checkout Session:
https://stripe.com/docs/payments/checkout
https://stripe.com/docs/checkout/quickstart
No, it is currently not possible to display a Checkout Session in any way other than a redirect to the hosted page.
Got it, thanks!
Any time!
On a related note, is there a way to add back button once payment is successful without us having to configure a separate page?
You control where your cusotmers are routed when they successfully complete payment via the success_url that you provide when creating the Checkout Session:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-success_url
Similarly, the cancel_url parameter is used to indicate where customers should be directed if they click on the back button in the Checkout Session instead of completing the payment process.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, if we create a checkout session, we can configure this. How do we achieve this if we use Stripe's embedded pricing table? In pricing table configuration, I didn't see an option to redirect to a page, it has option to specify an entire page on sucess. We still want to use Stripe's success page, only that we want the users to be redirected back to where they initiated the payment
To do that with Pricing Tables, you'll want to select the option to not use a Stripe-provided confirmation page, which allows you to provide the URL that customers should be redirected to upon success:
Got it, thanks!