#Tahasin
1 messages · Page 1 of 1 (latest)
hello! since v2022-08-01, a PaymentIntent is no longer created during Checkout Session creation in payment mode. Instead, a PaymentIntent will be created when the Session is confirmed - https://stripe.com/docs/upgrades#2022-08-01
Then how to get the payment intent from the Session ID ?
you can get is after the session is completed
can you share why you need the PaymentIntent?
I need to store the payment_intent in my cloud database to track the customer payment.
that's doable from the Checkout Session - when you receive the checkout.session.completed event, you can make another request to retrieve the corresponding PaymentIntent id
Understood. Which API should I use to do that?
Thanks a lot.
or actually, maybe you don't need to make another request
the checkout.session.completed event should already contain the PaymentIntent in https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
The payment_indent is always null , In both solutions you gave.
can you share the Checkout Session id?
did you make payment yet?
yes
cs_test_a1WZnYaozw58R98KvaXzLruwZaua0sqb4kEYQ61VZkWHuwqT4yYGFUOZxw
This is another successfull one
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.