Who should use this guideThis guide is intended for merchants who:
- Use Payrails as a payment orchestrator
- Use NMI to accept card, Apple Pay, and Google Pay payments
Create and configure an NMI integration in Payrails
Follow these steps to set up NMI:- Log in to the Payrails portal.
- Go to Settings → Integrations → Payments.
- Select Add instance to create a new NMI integration configuration.
- Select the workspaces where this integration should be available.
About workspacesWorkspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple workspaces.
Step 2: Choose the provider
Select NMI and continue to the next step.
Step 3: Configure your NMI integration
Integration instance name
An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for each provider based on region, currency, or business needs. Choose a clear, consistent name, since it’s used in routing.In Payrails
- Enter an Instance name for your integration.

Account details—Host
In Payrails- Enter the Host field with your NMI gateway hostname (for example
secure.nmi.com, or your white-labeled domain).

API Key
In NMI- Log in to the NMI Merchant Portal.
- Go to Settings → Security Options → Security Keys → Private Security Keys.

- Select Add a New Private Key to retrieve or generate your API Key.

- Paste the value into the API Key field.

Store your API Key securely. It is sent as a static
Authorization header on
every request and is the only credential required to authorize payments.Webhook Signing Key
In NMI- Go to Settings → Webhooks → Endpoints → Create.
- Add an endpoint pointing at the Payrails notification URL (copied after saving your NMI configuration—see Configure notifications below).



- Select the events to be notified on.
- Note the signing key generated for this endpoint.
- Paste the value into the Webhook Signing Key field.

Payment methods
In Payrails- Under Payment methods, enable Card, Apple Pay, and/or Google Pay as needed. Each has its own configuration block.
Enable the integration
In Payrails- Select Save account to save the configuration and enable the integration.
- The Enabled status confirms that the NMI integration is active.
Next steps
- Run a test payment in test mode using an NMI test card:
- Visa:
4111 1111 1111 1111, any near-future expiry, any three-digit CVV.
- Visa:
- Verify that:
- The payment appears in your NMI Merchant Portal.
- The payment status updates correctly in Payrails.
- Once verified in test mode, repeat the setup in live mode.