#Shoop
1 messages · Page 1 of 1 (latest)
If the payment is unsuccessful, Stripe will send payment_intent.payment_failed event to inform you about the payment failure
If a payment fails for whatever reason with this account in the future, how do we recover from that?
In general, you could prompt the customer to enter the new payment method for payment
so, when I try to allow the customer to go through the same flow again, it immediately closes, I think because the setupintent is marked as succeeded.
is there a way for me to pass in "overwrite" to collectBankAccountForSetup or something like this?
Or, is this just going to be a support case where I need to go into my stripe dashboard and unset them manually?
when I try to allow the customer to go through the same flow again, it immediately closes
What do you mean byimmediately closes? Do you mean the payment is successful?
is there a way for me to pass in "overwrite" to collectBankAccountForSetup or something like this?
What are you trying to achieve? What's the scenario?
What do you mean by immediately closes? Do you mean the payment is successful?
the screen darkens for a second, then I get this console error:
This PaymentIntent cannot be actioned on because it has a status of succeeded. Only a PaymentIntent with one of the following statuses may be actioned on: requires_payment_method, requires_confirmation, requires_action.
What are you trying to achieve? What's the scenario?
- Customer successfully goes through ACH setup
- At some point in the future, we create a payment for the customer because they bought something
- The payment fails for whatever reason
4a. In some cases, the resolution is for the customer to add funds to their bank account (insufficient funds)
4b. In other cases the customer would need to change their bank account, right? So, in this case I wanted to direct the customer through thecollectBankAccountForSetupflow again
let me know if I'm thinking about this the wrong way
Yes, the flow is correct. In case of 4b, a new SetupIntent should be created to collect new payment method instead of using existing one
Then set the new payment method to the payment intent
got it, thank you!