created payment model for invoices