#Glutch - receipt number

1 messages ยท Page 1 of 1 (latest)

tall kindle
#

Good question. Checking in to this.

fallow copper
#

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

tall kindle
#

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

fallow copper
#

Alright, thank you. It will do ๐Ÿ™‚

fallow copper
tall kindle
#

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?

fallow copper
#

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

tall kindle
#

Gotcha. Yeah sorry I should have been clearer that the charges are in data