If refunds fail before the payment has settled, you shouldn’t be permitted to submit the refund. The option should only be made available once the transaction has settled.