#Vish-webhooks
1 messages ยท Page 1 of 1 (latest)
hi there! do you have an object id that you'd want to get the receipt number from?
can you share the object id?
Lets say this one: ch_3L5l0aQaoUSIKTBH1TLYhThB
I am using webhooks to get info when a charge was sucessgul
I am using case "charge.succeeded":
In this case I am not getting the receipt number from the webhooks
What is the 'receipt number' in this case?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes
I always get null in webhook for: "charge.succeeded"
How do I get the receipt value
Yep, it's not populated until the receipt email is sent
Then how do I get that?
Is there a subsequent charge.updated event?
I do see that
but I am not getting it there also
Also I am not getting any emails for receipt
is this because this is in test mode at the moment?
Ah yeah. We don't send them in test mode. So field will never have a value
I'd imagine charge.succeeded will have the value in live
Ok, so that should be available in test mode in succeeded or updated?
The urls with receipt number are available
If you look at ^, the receipt number exists there
It won't be available in test mode unless you physically send the email receipt via the Dashboard
in live mode, it should be available in updated or succeeded?
๐
Let me try and confirm
Thanks for confirming. One last question is why are old receipt urls expiring? Is this expected in live mode also?
Yep, it's there (just check on my own Stripe account)
Great thanks
How do you mean?
Which ch_xxx is that for?
I imagine its like Invoices where the URLs expire after 30 days: https://stripe.com/docs/invoicing/hosted-invoice-page#invoice-urls