If you need to reverse a refund, you cannot directly cancel or void it. However, you have the option to charge the customer again using the same card.
To do this, you can utilize the Unified Payments API.
Remember to inform the customer in advance about the new payment.