#sarrielek_charge-receipt-number

1 messages ยท Page 1 of 1 (latest)

woeful trenchBOT
#

๐Ÿ‘‹ 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.

polar imp
versed hamlet
#

Which event should happen when the number is created?

polar imp
#

There isn't an event for that

versed hamlet
#

ok

#

I'll try retrieving the charge

polar imp
#

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?

versed hamlet
#

Just surface it on our own UI whenever the user wants to see or download an invoice/receipt

polar imp
#

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.

versed hamlet
#

thanks so much, we will try that

polar imp
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚

woeful trenchBOT