#Val

1 messages ยท Page 1 of 1 (latest)

midnight hollyBOT
tight ermine
#

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

dawn flint
#

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.

tight ermine
#

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 ๐Ÿ˜„

dawn flint
#

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?

pine wraith
#

There's no line item/product data persisted on Payment Intents, just the amount of the payment.

dawn flint
#

Thanks so much @pine wraith โœŠ works like a charm!