To refund if the payment id unapplied, go to Payments from the main menu and chose Enter/ Edit Payments.

Search/ look up the payment entry and use the  button.

Enter the amount to be refunded and click on Proceed.

Click on Save.