Currently, once the payment is done for an invoice, there is no way to void or refund it.
Incase Stripe is connected and the payment was made via Stripe, refund should also trigger refund in Stripe