#sarrielek_charge-receipt-number
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1423095143719895101
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
That is because this event is generated before the receipt is sent to the customer. We document that this value will be null until we have sent the receipt: https://docs.stripe.com/api/charges/object#charge_object-receipt_number
I recommend retrieving the Charge from the API directly and examining the number.
Which event should happen when the number is created?
There isn't an event for that
All of these actions are triggered in quick succession so by the time your webhook endpoint receives the event, most likely the receipt has been sent and the number is populated.
Are you trying to include this in an email to the customer or just surface it in your own UI?
Just surface it on our own UI whenever the user wants to see or download an invoice/receipt
It might make sense to retrieve the charge at that point, so there isn't a race condition on updating the charge with the receipt number and you attempting to retrieve it.
thanks so much, we will try that
Happy to shed what ๐ก I can ๐