#formigueiro
1 messages · Page 1 of 1 (latest)
Hello
Yep, after you create a Checkout Session then a URL is returned to you and you redirect your customer to that URL
https://stripe.com/docs/billing/quickstart shows you a quickstart code example of what this could look like
You leave that value as-is and we append the Checkout Session ID to your success_url
You can use that for fulfillment if you like. See: https://stripe.com/docs/payments/checkout/fulfill-orders
Err sorry
That talks about fulfillment via Webhooks. You would use that Checkout Session ID to show a confirmation page: https://stripe.com/docs/payments/checkout/custom-success-page
I didnt understand, sorry doesn't there need to be anything there?
oh, i found here
so i need to keep like that http://yoursite.com/order/success?session_id={CHECKOUT_SESSION_ID}
Yep
If I configure the cancel page, directly on the platform, I need to put also in stripe.checkout.sessions.create too, right
Yep that would be the page that the customer would be sent back to if they leave the Checkout Session via the "back" button for instance
If I have already configured it through the platform, do I still need to send it here?
is it not possible over plataform configure success and error page, or am i crazy? hehe
Not possibe. It is a required param when you create the Checkout Session
hm, ok
if i keep success_url: "http://yoursite.com/order/success", is wrong?
But you can't have a "default" for cancel_url
You have to set it explicitly if you want there to be a "back" option
I don't understand how on my front end I will send the user to the checkout page?
using session.url?
You redirect to the url (https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-url) that is provided when you create the Checkout Session
Yep
So you can either redirect directly from your server, or you can pass that URL to your client and redirect client-side. Either works.
so in my front with success, i redirect user to this session.url
nice
ty @sturdy field , you are amazing
Yep
subscription I can only do one at a time, right?
One Checkout Session creates one Subscription, yes.
But a Subscription can have multiple items if you want
It is not possible to add to a cart and in the end subscribe to all
You can have multiple line_items as long as they have the same recurring interval (like they are all monthly)
Will the checkout page have everyone's information?
What is "everyone's information"?
oh sorry
On the strip checkout page, we will have data for each subscription (values,...?
Still not sure what you mean by that, sorry.
The Checkout Page will show data based on what you input on your Checkout Session creation.
Really the best thing to do is to test this out in test mode and experience the flow for yourself
If i send 5 subscription, fro example, as a said. All subscription info will be displaying in this page
?
If you include 5 line_items in your request then yes.
You can't "send 5 subscriptions"
Sure