Payments on an invoice can be recorded manually by staff or done directly by client.
To record a payment for invoice manually you need to first add Payment modes from Settings->Payment Modes
For clients, Pay button is available on pending, partially paid and overdue but not cancelled invoices.