#andrea-skuola-SEPA

1 messages ยท Page 1 of 1 (latest)

hot bay
#

๐Ÿ‘‹ happy to help

#

automatic mail for the customer you mean?

wise kelp
#

even for me, if is it possible

#

probably from dashboard

hot bay
#

you have webhooks for that

wise kelp
#

i mean without develop

hot bay
#

unfortunately I don't think it's possible

wise kelp
#

ok, so what is the event I need to handle that let me know when SEPA payment is failed?

hot bay
#

are you using payment intents? checkout? etc?

wise kelp
#

checkout is the pre-built page right?
i'm using payment intents with payment elements

#

because i have custom flow

hot bay
#

ok so in that case you have to listen to the payment_intent.payment_failed event

#

in your webhook

wise kelp
#

ok, but with this event i get even the card payments failed

#

so it's the same event

hot bay
#

yes but you can filter on the event by retrieving the payment method and seeing the type

stoic matrix
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

wise kelp
#

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?

stoic matrix
#

Sure, that should work too if the payment is attached to an invoice

wise kelp
#

i do not attach payment to invoice, but i see it's in automatic

#

i think

stoic matrix
#

Is it from a subscription?

wise kelp
#

not always

#

expecially with sepa it's not a subscription

stoic matrix
#

Ok, so you can test this. Create a one-off invoice in your Dashboard that accepts SEPA

#

Visited the HIP (payment page) for that invoice. Try pay and use the failing SEPA test details

#

See which events fire and when, and whether they have the data you need in your webhook