Once you’ve identified an invoice that supports card payment, you can process the payment by triggering a processing job. This involves submitting the invoice document along with the virtual card details.
You can view the details of the Process jobs in the admin dashboard.
To provide virtual card details to the Virtual Card Agent:
The recommended approach is to provide an iFrame link containing the card details or use one of our native integrations. The Virtual Card Agent will access this iFrame to retrieve the card data securely.
Note: Ensure that the iFrame is lightweight, renders quickly, and does not include any additional content beyond the card details.
Mercoa supports native integrations with the following issuing partners:
We are actively working to expand support for additional issuing partners. To request integration with your preferred partner, contact us at support@mercoa.com.
We strongly recommend using an iFrame link or native integration to provide card details. Avoid including card information directly in the request body to reduce exposure of sensitive data.
ACH Fallback: To automatically avoid card processing fees, you can configure ACH fallback. See our dedicated ACH Fallback documentation for complete details on setup and configuration.
While the payment job is in a pending state, the Virtual Card Agent performs the following steps:
When the payment is successfully processed, the job result will include:
If the agent is unable to complete the payment:
Mercoa sends webhook notifications when Virtual Card Agent processing jobs complete. You can configure these webhooks in the Mercoa Developer Portal.
When a Virtual Card Agent processing job completes (either successfully or with an error), a webhook with the event type paymentGateway.process.completed is sent to your configured webhook endpoint.
Webhook Payload:
If a job fails, the webhook will include error information in the response:
For more information about webhooks, see our Webhooks documentation.