So if the customer has not paid the invoice yet but you have clicked on receive payment, then all you would need to do is go into that received payment> click more> delete this will then remove the payment for you to then apply when the invoice is actually paid by the customer.