#atul-receipt-url

1 messages ยท Page 1 of 1 (latest)

languid plinth
#

Hi there ๐Ÿ‘‹ the exact path to do this depends on how you're using the Checkout Session. Are you using them to process one time payments or create subscriptions?

tawny panther
#

using to create subscription

#

mode is subscription

languid plinth
#

Gotcha, you'll need to follow the chain of created objects then. Below is the order of objects that you'll need to step through:
Checkout Session -> Subscription -> Invoice -> Payment Intent -> Charge

You can use expand to reduce the number of requests that it takes to get that information:
https://stripe.com/docs/api/expanding_objects

tawny panther
#

Can it be done in one stripe call ??

#

And also, please confirm when stripe automatically charges the invoice, how can we get reciept_url

languid plinth
#

No, the Charge's receipt_url is nested too far from the Checkout Session to be able to retrieve it in a single request.