#Glutch - receipt number
1 messages ยท Page 1 of 1 (latest)
Thank you. It would be really great. I've built my entire flow around the receipt being the main ID, but switching to webhooks it's not available. It would be sad to do another request just for that
You will have to do another request for it, it looks like. The receipt_number is on Charge objects. So you would want to retrieve the Checkout Session's payment_intent and expand its latest_charge field. Then you can see the receipt number from there https://stripe.com/docs/api/charges/object#charge_object-receipt_number
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alright, thank you. It will do ๐
Do i need to retrieve the paymentIntent, then retrieve the charge from paymentintent.charges.url?
I am a bit unclear on the question. Why do you say url there? Are you including a custom receipt number via URL or something?
im just looking at the docs and from retreving the payment intent this is what i see
i'm just a bit confused how i find the ch_id currently, i'll keep looking around
found it, sorry
Gotcha. Yeah sorry I should have been clearer that the charges are in data