#atul-receipt-url
1 messages ยท Page 1 of 1 (latest)
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?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can it be done in one stripe call ??
And also, please confirm when stripe automatically charges the invoice, how can we get reciept_url
No, the Charge's receipt_url is nested too far from the Checkout Session to be able to retrieve it in a single request.