Level 2

Customer paid an invoice twice. How do I enter second payment so that it's linked to invoice and shows as active credit for the customer? Thanks