#froggy
1 messages · Page 1 of 1 (latest)
No it should not
The Payment Intent gets created when the customer completes the checkout process
so the payment intent is created after the stripe checkout process concludes?
how can i access the payment intent then
why is it that the sample has a payment_intent?
At what point do you want to access the Payment Intent?
Are you using webhooks and listening for the checkout.session.completed event?
actually, the reason why i need the payment intent is so that i can create a Transfer object
Do you have some sample code for this?
Yes we do, you can find it here: https://stripe.com/docs/payments/checkout/fulfill-orders
Checkout has a number of features that aren't covered in the basic Accept a Payment guide. You can review more of them here: https://stripe.com/docs/payments/checkout
Sure, I'll take a look. Thank you for your help
Oh one more thing
To link a Transfer object with a stripe checkout session object, what should I be doing?
What is the purpose of the Transfer?
The Transfer is for this
Okay.
So for something like the separate charge & transfers flow, you would listen to the checkout.session.completed event, retrieve the Payment Intent from the Checkout Session https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent, and then create the Transfer.
You would likely also want to be sure the Payment Intent had a status of succeeded
Understood, I'll try it out! Thank you so much for your help.