This article explain how to cancel a payment.
Go to A/R (Accounts Receivables).
Click on the Payment History tab.
Use the filter to search for the payment you want to cancel.
Go to the Actions column and click on Cancel Payment.
A confirmation window will appear. Click on Yes to continue.