#Ish
1 messages · Page 1 of 1 (latest)
The flow is to create the Checkout Session server-side and redirect customers from the server (where you control the code execution).
Here is our canonical tutorial for this: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
Yes
After creating a Checkout Session, redirect your customer to the URL returned in the response.
The above mentioned redirection, If I have to initiate from server side , because I am using APIs I need to call "redirect ToCheckout" API right
No
You create the Checkout Session via our API and it returns the Checkout Session to you
You then send a redirect request from your server to the client that will redirect your customer's browser to the Checkout Session URL
I had to implement complete functionality in server side. So Instead of sending redirect request from server to Client, Can I call redirectToCheckout API on server side
redirectToCheckout is not an API. It's a deprecated JS function
oh ok Got you
On the server-side you would use whatever normal response to redirect your user. Our code snippet here demonstrates that:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#redirect-customers
Happy to help 🙂