There are several ways, but probably the easiest is to :-
[1] Open the Patient record who you want to refund
[2] Click on the Account Balance screen
[3] Click the payment that you wish to refund, and click REFUND (at the top of that screen and also on the right-click menu).