Overview
This article explains how to connect your NMI Payment Gateway to gaiia. You’ll need to create security keys in NMI, set up a webhook, and then configure the integration in gaiia.
Step 1: Gather your NMI credentials
Private and public security keys
gaiia requires both a Private Security Key and a Public Security Key to process payments through NMI.
- Log in to your NMI Payment Gateway instance
- Click on My Settings in the top menu
- Select Security Keys
- Click Add a New Private Key
- Key Name: For example, “gaiia NMI Integration”
- Username: Your NMI username
- Key Permission: Check API
- Click Create to save
- Scroll to Public Security Keys and click Add a New Public Key
- Key Name: Same format as private key
- Username: Your NMI username
- Key Permission: Select Tokenization
- Click Create to save
Make sure to copy both keys. You’ll need them later to complete the integration in gaiia.
Webhook setup
Webhooks allow gaiia to receive real-time payment updates from NMI, including returns and chargebacks.
- Click on My Settings in the top menu
- Select All Settings
- Scroll to the Transaction Options section and click Webhooks
- Click Create
- Use the following settings:
- URL:
https://6bpu8a02c8.execute-api.us-east-1.amazonaws.com/production/on-nmi-webhook-event?billingSettingsId=YOUR_BILLING_ID
Your gaiia billing setting ID can be found under Settings (Admin) → Billing → Currency Settings → Other settings.
- Available Events:
- transaction.check.status.latereturn
- transaction.check.status.return
- transaction.check.status.settle
- transaction.void.success
- URL:
- Click Save Changes
Make sure to copy the Signing Key displayed in the Endpoints area. It will also be required when connecting NMI in gaiia.
Step 2: Configure NMI in gaiia
- Go to the Admin Settings menu
- Select Integrations, then go to the App Directory tab
- Find NMI under the Payments category and click
Install
- Select the payment types you'll be accepting and click
Next
- Enter the following:
- Private Security Key
- Public Security Key
- Webhook Signing Key
- Click
Connect
to finish setup
Once connected, you can begin processing payments and receiving updates through the NMI gateway.