#Digtop-webhook

1 messages · Page 1 of 1 (latest)

small veldt
#

Hi, could you please share an event id evt_xxx

uncut stirrup
#

evt_3KoPnUJ0gDfBkyWo17jbRjUY

small veldt
#

I'm taking a look

#

this is a charge.failed event

#

not a invoice.payment_failed

uncut stirrup
#

I will try whith this event

#

thanks

small veldt
#

and you haven't subscribe to the invoice.payment_failed

#

in your testing endpoint

#

nor in your live one

uncut stirrup
#

how to do it

small veldt
#

I think the best way is to subscribe to those events instead of using charge.failed

uncut stirrup
#

What do you mean by subscribing

#

i am using switch case on event.type in my end point

small veldt
#
#

I mean you need to configure your webhook endpoint to listen to those events so we could send you these events to your endpoint

#

and then you could use your switch case to route the different behaviors for different event types

uncut stirrup
#

ah okey I understand I can modifi an existing endpoint right ?

small veldt
#

yes you can add event types

uncut stirrup
#

thanks a lot I totally missed the subscribing part !