Canceling a refund
For a short window of time after creation, some card refunds support cancellations via the Stripe dashboard. The refund must not have been processed as a charge reversal. If cancellation is no longer available, you would need to create a new charge for the customer in the amount of the refund in order to recoup the funds.
For refunds where Stripe reaches out to the customer for their bank account details through email, the refund can only be canceled before the customer submits their bank account details through the refund input link, or in case of refund attempt failure or retry.