#andrea-skuola-SEPA
1 messages ยท Page 1 of 1 (latest)
you have webhooks for that
i mean without develop
unfortunately I don't think it's possible
ok, so what is the event I need to handle that let me know when SEPA payment is failed?
are you using payment intents? checkout? etc?
checkout is the pre-built page right?
i'm using payment intents with payment elements
because i have custom flow
ok so in that case you have to listen to the payment_intent.payment_failed event
in your webhook
yes but you can filter on the event by retrieving the payment method and seeing the type
https://stripe.com/docs/api/payment_methods/object#payment_method_object-type sepa_debit in your 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.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
yes, if u read the chat i'm asking what is the event to listen when a sepa payment fails after the business days wait
your friend said to listen to payment_intent.payment_failed
but if i'm already listening to invoice.payment_failed is enough?
Sure, that should work too if the payment is attached to an invoice
You can probably test this quite easily with the SEPA test data we have: https://stripe.com/docs/payments/sepa-debit/accept-a-payment?platform=web&ui=checkout#test-ibans
Is it from a subscription?