Added markInvoiceAsPaid