Stripe Issuing lets you create virtual cards that can be used with the Mercoa Virtual Card Agent to process invoice payments securely.
To start using Stripe Issuing, ensure your Stripe account has it enabled:
publishable_key and secret_key.Create virtual cards for specific invoices:
This is just an example, please refer to the Stripe Issuing documentation for more information.
The Stripe Issuing integration with the Virtual Card Agent provides a secure, automated workflow for processing virtual card payments. This integration uses ephemeral keys and iFrame technology to ensure sensitive card data is handled securely.
The integration follows a secure workflow where your Stripe virtual card is used to process payments through the Virtual Card Agent:
Process Flow:
When using Stripe Issuing with the Virtual Card Agent, your API request should include:
The postBody and headers template supports these variables that will be replaced with actual values:
{{cardId}} - The Stripe card ID{{nonce}} - A unique nonce for this request{{accountId}} - Your Stripe account ID (if applicable)Your backend needs to implement an endpoint that generates ephemeral keys. Here’s an example:
Your ephemeral key endpoint must return the ephemeral key secret in one of these formats:
Option 1: Object with ephemeralKeySecret property
Option 2: Object with secret property
Option 3: Plain string (the ephemeral key secret directly)
The ephemeral key secret must be a valid Stripe ephemeral key that was created for the specific card and nonce provided in the request.