While viewing and editing an invoice, you are able to save a negative amount as a payment. In this way, you can refund a payment by saving a negative payment and then adding a note to the invoice (e.g. refunded).

You can also then cancel the invoice:

How to cancel an invoice

Did this answer your question?