#commento
1 messages · Page 1 of 1 (latest)
Hi there, you can listen to invoice.finalized event
so invoice.payment_succeeded is triggered only when the invoice goes to paid?
yes
so just to be sure: I can listen to invoice.finalized because the invoice will not be finalized if the payment_method is not accepted (for example declined for some reason). is it correct?
No, the invoice can be finalized regardless whether a payment method is attached.
yeah but I would like to receive an event when a SEPA/BACS payment_method is validated
I suppose that a SEPA/BACS payment_method is initially validated when inserted by the customer
is there an event that is triggered after this initial validation?
I still don't quite get what you want to achieve, can you tell me the business problem that you are trying to resolve?
I have to fulfill orders when payment_succeded but for SEPA the business does not want to wait several days so if the status moves to OPEN the idea is to fulfill orders anyway
SEPA is a delayed payment method and it takes time (i.e., days) to validate and confirm a SEPA payment.
If you are going to fulfil the order too soon, you'll have the risk to ship the goods out without receiving money from customers.
ok, and what is returning the stripe.ConfirmPayment() in the frontend concerning the payment_intent associated to the invoice in case of SEPA?
You mean the response? you can find out he details in the API referene https://stripe.com/docs/js/payment_intents/confirm_payment
yes I was referring to the status returned in case of SEPA
https://stripe.com/docs/payments/sepa-debit/accept-a-payment?platform=web&ui=element#web-confirm-success If the payment is sumbitted successfully, the PaymentIntent status will be processing