Batch payments allow your customers to pay multiple invoices in a single transaction.
Batch payments are only available for bankAccount and check payments. custom payments are not officially supported, but you can implement them yourself.
To enable batch payments, you set batchPayment on the invoice to true. This field will be true if the invoice is a batch payment, and false otherwise.
The Mercoa <PayableDetails /> React component also supports batch payments using the <PaymentOptions /> sub-component. To enable batch payments, you must explicitly include the PaymentOptions component within your PayableDetails implementation.
Mercoa automatically batches payments for invoices that have the batchPayment field set to true. This means that you don’t need to manually batch payments.
Mercoa uses the following logic to determine if an invoice is part of a batch:
batchPayment field set to truepayerId and vendorIdpaymentSourceId and paymentDestinationIdpaymentDestinationOptionsdeductionDatestatus of SCHEDULEDIf any of these conditions aren’t met, the invoice is considered a separate payment.
Mercoa sends a single ACH payment for all invoices in a batch. The paymentDestinationOptions memo assumes that all the invoices in the batch contain the same memo, as one is chosen at random.
Mercoa sends a single check payment for all invoices in a batch. The check will also contain a table of the invoices in the batch.
On the deductionDate, Mercoa will create a batch payment for the invoices in the batch. This batch will be created at the last payment window of the day, so invoices can be added to the batch until the last payment window.
Because printed checks are not processed by Mercoa’s payment job, when any invoice in a batch is marked as PAID, Mercoa will process all invoices in the batch.