#Val
1 messages ยท Page 1 of 1 (latest)
Receipt URL can be found in Payment Intent object. After payment is successful using Checkout Session, checkout.session.completed event will be sent with Payment Intent ID. You can then use the Payment Intent ID to retrieve the receipt_url under charges with Payment Intent retrieval API: https://stripe.com/docs/api/payment_intents/retrieve
Thanks a ton @tight ermine / I've been pulling my hair since yesterday on this one ๐ฆ ๐ checking this out now.
Quick heads up @tight ermine
That link above redirects to: https://stripe.com/docs/payments/accept-a-payment?ui=elements
I had to go to it manually via URL...
https://stripe.com/docs/api/payment_intents
...and scroll down to
retrieve
No biggie for me.
That's strange, I'm able to open the Payment Intent retrieval doc directly. I'll monitor if same issue happens for other users. Hope it doesn't block you from getting the receipt URL ๐
Here's a recording if it helps in any way // my internet and laptop were lagging because I have a gazillion things open ๐
And Yes ๐ค got the receipt_url!
So cool and easy ๐
Also, if I can bother you with one last thing @tight ermine:
Nowhere on checkout.sessions or PaymentIntent can I find the product ID
Is there an easy way to find what the customer has just bought?
via the line_items field: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Not included in API responses automatically, so you need to make a separate API request to retrieve them: https://stripe.com/docs/api/checkout/sessions/line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
There's no line item/product data persisted on Payment Intents, just the amount of the payment.
Thanks so much @pine wraith โ works like a charm!