1st Step: Cancel the invoice.
In the billing tab of the customer account, click on the invoice to be refunded.
To see the details of each invoice, click on the small arrow on the left of the invoice line. Click on 'See the Invoice'.
Click on 'Cancel'.
2nd Step: Refund.
Choose 'direct refund' all online payment methods .
Click on 'Refund'.