Handling transactions paying multiple invoices