> ## Documentation Index
> Fetch the complete documentation index at: https://developers.paysum.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect NMI

> Take card payments through your NMI merchant account.

## Set it up

**1. Create a private security key**

In the NMI merchant portal, open Options → Settings → Security Keys and create a private API key.

**2. Create a tokenization key**

On the same page, create a public key with the Tokenization permission. Checkout uses it to collect card details securely.

**3. Connect in the dashboard**

In the dashboard, open Payments → Payment setup. Choose NMI, paste both keys and select Connect.

**4. Test with a sandbox key**

Use an NMI sandbox account, or test mode on your live account, with the Visa test card 4111 1111 1111 1111 and expiry 10/29. Amounts under 1.00 decline in test mode.

## Where card details are entered

Card fields appear in NMI’s secure payment sheet on your checkout rather than on a separate NMI page. The card number goes straight to NMI and never reaches your store.

## If something does not work

> [!NOTE]
>
> If payments decline, read the reason in the NMI transaction list. Make sure the private key is an API key and the public key has the Tokenization permission.

Still stuck? [Contact support](https://docs.paysum.io/support) with the store, the page, and any order or request reference.

## Next steps

> [card] [Payment methods](https://docs.paysum.io/payments)
>
> Connect the accounts and wallets buyers use to pay your store.

> [card] [The buyer checkout flow](https://docs.paysum.io/checkout-flow)
>
> Understand the steps from a product selection to a paid order and delivery.

> [card] [Orders and invoices](https://docs.paysum.io/orders)
>
> Find a transaction, inspect its status, and troubleshoot payment or delivery.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.