How do I mark an Invoice as paid?

To mark an invoice as paid, it has to be paid in full by either of the following methods:
  1. Enter the full payment manually (How to enter a payment)
  2. Or the invoice must be paid online (if online option is selected)