Let me share some clarification about recording customer payments in QuickBooks Online.
If the invoices are all for the same customer, you can make the payment at once. You do it by clicking the + New option and selecting the Receivepayment option.
For the detailed steps, here's how:
Click the + New option.
Select Receivepayment.
Below OutstandingTransactions, put a checkmark on the invoices you want to pay.
Hit Save and close.
Also, I've attached some articles you can use to know more about recording payments, as well as the way to undo this: