#Digtop-webhook
1 messages · Page 1 of 1 (latest)
evt_3KoPnUJ0gDfBkyWo17jbRjUY
and you haven't subscribe to the invoice.payment_failed
in your testing endpoint
nor in your live one
how to do it
I think the best way is to subscribe to those events instead of using charge.failed
What do you mean by subscribing
i am using switch case on event.type in my end point
either by the API(https://stripe.com/docs/api/webhook_endpoints/update) or in your dashboard(https://dashboard.stripe.com/test/webhooks)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
ah okey I understand I can modifi an existing endpoint right ?
yes you can add event types
thanks a lot I totally missed the subscribing part !