#commento

1 messages · Page 1 of 1 (latest)

stark sableBOT
loud mulch
#

Hi there, you can listen to invoice.finalized event

sturdy mural
#

so invoice.payment_succeeded is triggered only when the invoice goes to paid?

loud mulch
#

yes

sturdy mural
#

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?

loud mulch
#

No, the invoice can be finalized regardless whether a payment method is attached.

sturdy mural
#

yeah but I would like to receive an event when a SEPA/BACS payment_method is validated

loud mulch
#

what do you mean?

#

can you elaborate more?

sturdy mural
#

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?

loud mulch
#

I still don't quite get what you want to achieve, can you tell me the business problem that you are trying to resolve?

sturdy mural
#

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

loud mulch
#

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.

sturdy mural
#

ok, and what is returning the stripe.ConfirmPayment() in the frontend concerning the payment_intent associated to the invoice in case of SEPA?

loud mulch
sturdy mural
#

yes I was referring to the status returned in case of SEPA

loud mulch