To unmatch a payment in Pastel Accounting, go to the customer account and select the "Receipts History" tab. Find the payment that needs to be unmatched and click on the "Unmatch" button. This will remove the payment from the invoice and allow you to make the credit note.