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

# Connecting Paysight with NMI

> Learn how to connect your NMI account and configure API Key routing for Paysight, including setup for MID accounts.

This guide shows you how to connect your NMI account to Paysight using the API Key for secure, reliable payment processing.

## Pre-requisites

Before you begin, ensure you have:

* Access to your **NMI Admin Dashboard**
  * The ability to generate API keys in NMI (requires 2FA and admin permissions)
* Paysight Account
* For multiple MID accounts: **Processor IDs** will be needed

## NMI MID Setup Guide

<Steps>
  <Step title="Creating an API Key">
    1. **Login** to your NMI account
    2. Navigate to `Options` > `Settings` > `Security Keys`
           <img src="https://mintcdn.com/paysight/f-RP10oIY58so-H0/images/nmi1.png?fit=max&auto=format&n=f-RP10oIY58so-H0&q=85&s=23d2c4db0193ee96df611f5365482a6e" alt="NMI Security Keys" width="2620" height="1158" data-path="images/nmi1.png" />
    3. Click `Add a new Private Key`
           <img src="https://mintcdn.com/paysight/f-RP10oIY58so-H0/images/nmi2.png?fit=max&auto=format&n=f-RP10oIY58so-H0&q=85&s=bab9e25f06103fb14db50238f24c3151" alt="NMI Private Key" width="2620" height="1345" data-path="images/nmi2.png" />
    4. Name the key as 'Paysight' and associate the key to the desired account
    5. Tick both `API` and `Cart`
    6. Click `Create` and copy the generated API Key securely
           <img src="https://mintcdn.com/paysight/f-RP10oIY58so-H0/images/nmi3.png?fit=max&auto=format&n=f-RP10oIY58so-H0&q=85&s=d8aa85e6459c3f81d827b4041ab04db8" alt="NMI API Key" width="655" height="346" data-path="images/nmi3.png" />
  </Step>

  <Step title="Processor IDs for Multi-MID Routing">
    If your NMI account has multiple MIDs:

    * Each MID will have a unique **Processor ID**.
    * Record the Processor IDs, we will need them to route specific transactions from Paysight to the correct MID.
    * If you don't set a Processor ID, transactions will go to the default MID.

    You can check the Processor IDs navigating to:

    1. `Options` > `Settings` > `Transaction Routing`
    2. You can check the Processor IDs and it's configurations, it's important to include that ID for MID boarding.
  </Step>

  <Step title="Provide Details to Paysight">
    * The API will be used for MID boarding. Ensure that the details inputted at onboarding form is correct.
    * If there are multiple MID accounts, put the Processor ID under notes on the form.
    * Your Paysight Account Manager will onboard that MID and do a test transaction.
  </Step>
</Steps>

## Troubleshooting & FAQs

* **How do I route to a specific MID?**\
  Provide the correct Processor ID in Paysight setup. If omitted, payments will use your default MID.

* **What if my test payment fails?**\
  Double check your API Key, permissions, and Processor ID. Make sure your key is active and assigned to the intended account.

* **More Help:**\
  Contact your Paysight Account Manager or visit the support section in your Paysight Dashboard.

## Other Guides and Resources

<CardGroup cols={2}>
  <Card title="Creating a Merchant Account" icon="money-bill-transfer" href="/guides/creating-a-mid">
    Step-by-step guide for requesting to connect a Merchant Account.
  </Card>

  <Card title="Paysight Transactions" icon="file-invoice-dollar" href="/guides/transactions">
    Check your transactions with diverse filtering, detailed information, refunds and transaction types.
  </Card>
</CardGroup>

<CardGroup cols={2}>
  <Card title="Paysight Reports" icon="table" href="/guides/reports">
    Analyze performance, payments and trends with Paysight Reports
  </Card>

  <Card title="Retry Strategies" icon="repeat" href="/guides/retry-strategies">
    Learn how to use Retry Strategy to minimize customer disruptions.
  </Card>
</CardGroup>
