#driveroval
1 messages · Page 1 of 1 (latest)
As far as I know an ACH payment can't be refunded while it is processing. https://support.stripe.com/questions/refunds-for-ach-direct-debit-payments
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Trying this in test mode I got just now, I got the error
This PaymentIntent (pi_3OAevRJmquaq3Lbp1LV7rbfw) does not have a successful charge to refund.
So it looks like you will need to wait for the charge to either succeed or fail and then create a refund if it succeeds
I have done a lot of times the process to "schedule the refund"
I mean, it cannot be refundeed inmediatly, but if you do it by API, the refund is scheduled for when it finish the processing
Can you show me the API call you are making to do this?
I can look in to how that would work for a processing ACH payment
stripe.revertTransfer(transfer.id, { amount: amountToRevert }),
stripe.refundPayment({ payment_intent: paymentIntent.id, amount: amountToRefund }),
])```
I'm not finding any docs on revertTransfer . Do you know where you got that code?
Or what API client you are using?
Also our refund call looks different in our JS library. I think both of those functions may be defined in your code or the code of a Stripe wrapper that you are using
payment_intent: 'pi_12345',
});```
Happy to help look further in to this, but I'll need more info on what those function calls are
Good to hear, glad that ended up working for you
thanks!