#tounka
1 messages · Page 1 of 1 (latest)
Could you share the Checkout Session ID?
Was the subscription's first invoice for $0?
this was in test mode by the way
cs_test_a1aogtQAIo6vTHRRMlFfFGKwd4n7wPsBVr0kTNnUeEGMyHV2FLWSEiYr39
Okay, so in subscription mode, the Checkout Session object's payment_intent will be null: https://stripe.com/docs/api/checkout/sessions/object?lang=node#checkout_session_object-payment_intent
What you want to do instead is expand the Checkout Session's invoice. The invoice object should include the PaymentIntent you're looking for
thanks for your response
i will try that out thank you. will i also need to expand the payment_intent object from the invoice?
It depends. If you just need the PaymentIntent's ID, no need for additional expansion
If you want to look at the full PaymentIntent object then yes, the PaymentIntent should also be expanded