#Vish-webhooks

1 messages ยท Page 1 of 1 (latest)

brave galleon
#

hi there! do you have an object id that you'd want to get the receipt number from?

#

can you share the object id?

sleek trellis
#

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

vivid rose
#

What is the 'receipt number' in this case?

sleek trellis
#

You can checkout this

#

Charge number is this: ch_3LOTCBQaoUSIKTBH0Exr75RW

vivid rose
sleek trellis
#

Yes

#

I always get null in webhook for: "charge.succeeded"

#

How do I get the receipt value

vivid rose
#

Yep, it's not populated until the receipt email is sent

sleek trellis
#

Then how do I get that?

vivid rose
#

Is there a subsequent charge.updated event?

sleek trellis
#

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?

vivid rose
#

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

sleek trellis
#

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

vivid rose
sleek trellis
#

in live mode, it should be available in updated or succeeded?

vivid rose
#

Let me try and confirm

sleek trellis
#

Thanks for confirming. One last question is why are old receipt urls expiring? Is this expected in live mode also?

vivid rose
#

Yep, it's there (just check on my own Stripe account)

sleek trellis
#

Great thanks

vivid rose
#

Which ch_xxx is that for?

sleek trellis
#

I will give you another one

#

Charge id: ch_3L7ZcvQaoUSIKTBH1MS5KqNs

vivid rose
sleek trellis
#

But that is to collect information

#

This is just showing static info

#

Will this be in live as well?