In your gateway
- In the Merchant Portal, open Settings, then Security Keys, and press Add a New Key. On an older portal it is under Options, Settings, Security Keys.
- Make a private key: give it a name, pick the user it belongs to, and choose the API permission. If your portal lists Query on its own, choose it too.
- Make a public key with the Tokenization permission. If you will switch on 3D Secure or Kount in Shoply, give it Checkout as well.
Subscriptions charged by themselves (optional)
To have a subscription’s renewals charged to the card it was bought with, your gateway account needs NMI’s Customer Vault service, which keeps the card in your gateway. NMI’s reference says a sale only names the card it kept when the service is on. If you are not sure your account has it, ask the provider that gave you the gateway. Then switch on Keep Cards for Subscriptions in Shoply (below).The webhook (optional)
With it, a payment you void in your gateway refunds the order in Shoply too.- Open Shoply’s NMI dialog and copy the Callback URL it shows.
- In the Merchant Portal, open Settings, then Webhooks, and press Create. Paste the Callback URL and pick the transaction events.
- The Webhooks settings page shows your signing key. Copy it.
In Shoply
- In your Shoply dashboard, open Settings, then Payment Methods.
- Under Add a Payment Method, find NMI and press Connect.
- Paste the public key into Public Security Key and the private key into Private Security Key.
- If your provider gave you a gateway address of its own, paste it into Gateway Address. Leave it empty for NMI’s own.
- If you made the webhook, paste its signing key into Webhook Signing Key.
- If your account has Customer Vault and you sell subscriptions, switch on Keep Cards for Subscriptions.
- Press Test Connection to try what you pasted, then Connect App.

