#toucan-checkout-redirect
1 messages · Page 1 of 1 (latest)
@sullen kernel yes there's a payment_intent property on Session
make sure to read the docs and test first! https://stripe.com/docs/api/checkout/sessions/object has all the information
@limpid anvil yes i understand, what im asking is actually that
after successful payment on Session, the user will be redirected back to the success_url provided
within the http request object, is it possible to reobtain the Session object?
i am asking because we do not have the backend infrastructure required to store the payment_intent id before the payment completion and retrieve it after payment as of yet
you definitely should store that information, otherwise anyone can hit that success url and pretend to pay
that is a great point
thank you for the time you're spending on this forum, its a life saver
I'm looking for a doc we had at some point, give me 5
https://stripe.com/docs/payments/checkout/custom-success-page this explains how to get the session id in the URL after the redirect
oh wtf
thank you for that link, was definitely very helpful