If you receive a payment, and the amount is higher than the outstanding total, the system will automatically retain the difference, and use it as a credit on future invoices. Overpayments can either be generated for the transaction or for specific orders.
Once you apply payments using overpayments generated for specific orders, you will not be able to modify the order specific payments, including void , cancel or applying a charge back to the payment.