You can manage available payment methods in the Settings / Master data / Payment methods menu.
There are some payment methods (eg. cash, Visa, etc.) in the list where the “Auto payment” option is switched on in the details of payment method.
If you use this kind of payment method, the invoice will be marked as paid automatically when you save your invoice and the balance due amount will be zero.