#Tahasin

1 messages · Page 1 of 1 (latest)

bold plankBOT
floral epoch
#

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

fallow edge
#

Then how to get the payment intent from the Session ID ?

floral epoch
#

you can get is after the session is completed

#

can you share why you need the PaymentIntent?

fallow edge
#

I need to store the payment_intent in my cloud database to track the customer payment.

floral epoch
#

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

fallow edge
#

Understood. Which API should I use to do that?

floral epoch
fallow edge
#

Thanks a lot.

floral epoch
#

or actually, maybe you don't need to make another request

fallow edge
#

The payment_indent is always null , In both solutions you gave.

floral epoch
#

can you share the Checkout Session id?

fallow edge
#

sure.

#

cs_test_a1rp1PFLamCPTG99ku4ms8S5ugcQCC9T1Esu7qmOtbrVxjLkNHNVUcBQNy

floral epoch
#

did you make payment yet?

fallow edge
#

yes

#

cs_test_a1WZnYaozw58R98KvaXzLruwZaua0sqb4kEYQ61VZkWHuwqT4yYGFUOZxw

This is another successfull one

floral epoch