#driveroval

1 messages · Page 1 of 1 (latest)

sullen arrowBOT
quaint summit
#

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

final trout
#

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

quaint summit
#

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

final trout
#
    stripe.revertTransfer(transfer.id, { amount: amountToRevert }),
    stripe.refundPayment({ payment_intent: paymentIntent.id, amount: amountToRefund }),
  ])```
quaint summit
#

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
final trout
#

It's there now

#

it seems that it was just a delay

#

but quite long...

quaint summit
#

Good to hear, glad that ended up working for you

final trout
#

thanks!