#xixi
1 messages · Page 1 of 1 (latest)
👋 How can we help?
Which API version are you using? Could you share a sample request ID (req_xxx) that you're seeing Payment Intent with null? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_IdQe2AD4vgFdwJ
api version 2020-08-27 can get payment_intent
api version 2022-11-15 can not
how can I change the api version
Since API version 2022-08-01, Payment Intent won't be created until Payment is confirmed in Checkout Session
Could you share the scenario why you need PaymentIntent during Checkout Session creation?
google /apple pay
How would Google Pay/Apple Pay be affected by the Payment Intent?
How to judge payment success for Pay/Apple Pay
I see! After the payment is completed, checkout.session.completed event will be sent to your webhook that includes Payment Intent ID. You can use the Payment Intent ID to identify the payment method.
Moving forward with new API version, Payment Intent will be absent from the Checkout Session. I'd recommend getting Payment Intent from checkout.session.completed event: https://stripe.com/docs/payments/checkout/fulfill-orders#create-event-handler
ok, thank you
No problem! Happy to help 😄