#Zeel Darji-PI-Sub-ID-Checkout
1 messages · Page 1 of 1 (latest)
Hello 👋
I believe the API was recently updated to generate PaymentIntent ID at the confirmation time and not a creation time.
Then when I will get payment intent Id and subscription ID?
Hang on, it looks like that was only for payment mode
https://stripe.com/docs/upgrades#2022-08-01:~:text=A PaymentIntent is no longer created during Checkout Session creation in payment mode. Instead%2C a PaymentIntent will be created when the Session is confirmed.
let me double check something
Yeah I don't think we generate PaymentIntent or subscription ID until the checkout session is completed/confirmed.
Can you expand on why you need these IDs prior to completing the checkout session?
okay then when I got these Ids?
When you complete the checkout session
You mean when webhook called?
That's one way to put it.
These IDs will be generated once the customers complete the checkout flow. You should be able to see it on checkout.session.completed event I believe.
Is there any other way?
I don't think there's a way to generate these IDs prior to completing the session
Is there a reason why you want it that way?
I am concerned if I will get it on checkout.session.async_payment_failed ?
That event is generated for non-card delayed notification payment methods
The other option would be to pass the checkout session ID to your success page and then making an API call to retrieve the checkout session / PaymentIntent / Subscription
https://stripe.com/docs/payments/checkout/custom-success-page
Zeel Darji-PI-Sub-ID-Checkout
Probably last question @grand frigate , just want to confirm we will not get Payment Intent Id if we are using subscription mode right?
Yes we don't create PaymentIntents when checkout session is created
regardless of subscription or payment mode
I'm asking for when webhook called
Do you mean when checkout.session.created event is generated?
You should be able to see it on checkout.session.completed
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-subscription
once the Checkout Session is completed, then you get all the information