#milan-pi-cancel
1 messages · Page 1 of 1 (latest)
Hi there
Hello
PaymentIntents can only be canceled if they are not in a succeeded state. So, the PI for a captured payment cannot be canceled. You'd have to refund at that point
US bank accounts are slightly different. If a PI for a US bank account is in processing, it may still be cancellable.
I recommend reviewing this: https://stripe.com/docs/payments/paymentintents/lifecycle
milan-pi-cancel
Got it. Makes sense on card. On ACH, I'm trying to figure out if we attempt a cancel or always just attempt a refund after the payment has been executed. It seems it would be hard to know exactly when the processing window is closed ...unless we ping Stripe to get the status in real time. I guess I'm looking for best practice on this one.
You can cancel first. Depending on where funds are at the moment, you may get an error and would need to wait for the PI to move to succeeded and then refund instead.
Ok. We can try that. And IF we did issue a refund when it is processing would that still work?
The timing would really depend here. It might still work and no funds would move if you make the refund earlier in the 'processing' state, if that makes sense: https://stripe.com/docs/payments/ach-debit#ach-refunds