#Peter Silie
1 messages · Page 1 of 1 (latest)
Hello 👋
I believe now the PaymentIntent is generated when the session is confirmed and not when the session is created.
Ok, fine as long as I know how to retrive it. I need it as a reference in my DB.
I've got the id of the Checkout Session Object, does it help somehow?
The change was made starting 2022-08-01
https://stripe.com/docs/upgrades#2022-08-01
You should be able to retrieve it once the checkout has been confirmed/completed
Either you can call the retrieve session API
https://stripe.com/docs/api/checkout/sessions/retrieve
OR
by listening to checkout_session.completed event
https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
Ok, I've got my Webhook running, I've seen that the ID of the Session Object seems to be the ID of checkout.session.completed.