Mark invoices as paid or failed