Use the following public NMI test values in the documented sandbox or test environment. Keep payment processing tests separate from live customer traffic. The standard payment cards and the sandbox 3DS scenarios are different references, so choose the values for the integration you are testing.

NMI test card numbers.

BrandTest number
Visa4111111111111111
Mastercard5431111111111111
Discover6011000991300009
American Express341111111111111
Diners Club30205252489926
JCB3541963594572595
Maestro6799990100000000019

Use expiration 10/29. NMI also publishes ACH account 24413815 and routing 490000018 for testing. These are the provider's documented test values, not credentials for real payments. NMI testing methods and values.

Trigger declines, errors and matching responses.

For standard payment testing, NMI documents response triggers based on the amount and submitted field values. A decline and an integration error should take different paths through your application. Test both, along with how you handle the AVS and CVV results.

ScenarioDocumented input
DeclineAmount less than 1.00, such as 0.50.
Fatal errorAn invalid card number.
AVS matchaddress1=888 and zip=77777.
CVV matchcvv=999.

These values are described in NMI Test and Deploy. Verify the response code your chosen API returns and map it to a useful customer message. A simulated decline does not establish which real production declines may be retried.

Choose the right test environment.

A successful-looking order is not proof that funds settled. NMI explains that Test Mode transactions do not go to the card or ACH processor. Keep test orders out of live fulfillment and customer notifications, and verify the environment explicitly before launch. NMI Test Mode documentation.

Sandbox 3DS test cards.

These values test authentication outcomes in NMI's sandbox. A successful 3DS result is separate from the payment authorization result. Run the full flow so your integration sends the required authentication data with the subsequent payment request.

BrandFrictionless authenticationChallenge
Visa41000000000001004100000000005000
Mastercard51000000000001075100000000005007
Discover64400000000001046440000000005004
American Express340000000000108340000000005008

For the sandbox challenge, code 12345 produces the documented successful response; another code produces failure, and Cancel produces an incomplete response. NMI sandbox authentication guide.

Different test environments use different authentication cards. NMI's other payer-authentication testing reference uses a separate set of 400… numbers. Follow the reference for your integration and environment rather than combining tables.

Check the complete order flow.

  1. Approved sale: confirm that order and transaction records agree.
  2. Decline and error: show an appropriate message and avoid creating a paid order.
  3. Authorization/capture: if your workflow separates them, test both and authorization expiry handling.
  4. Refund and void: verify the supported operations and resulting reports.
  5. Recurring charge: verify saved credentials, billing schedule and applicable transaction flags.
  6. Retries and callbacks: confirm repeated submissions or notifications cannot create duplicate orders.
  7. Authentication: test success, failure and cancellation.
  8. Environment separation: verify production configuration without exposing test or secret credentials.

NMI itself provides recurring billing and customer vault functionality. If Admoji coordinates your checkout and CRM workflows around a supported gateway, test both systems together. Confirm your exact gateway setup in the platform evaluation. See our subscription payment gateway checklist.

NMI testing questions.

How do I simulate an NMI decline?
NMI documents an amount below 1.00 for a simulated decline in the relevant testing environment. Use an invalid number to exercise the error path separately.
Can I use these test cards for live payments?
No. Use these public values only in NMI's documented test environment. They are not credentials for purchasing goods or moving real money.
What CVV and ZIP should I use for matching responses?
NMI documents CVV 999 for a CVV match, and address1=888 with ZIP 77777 for an AVS match. Confirm the field names for your API.
Does test mode prove my production integration works?
It validates supported simulated flows, not live issuer behavior, settlement or every fraud rule. Follow your provider's launch process after completing sandbox checks.
EXPLORE ADMOJI

Connect checkout to the rest of your business.

See CRM, checkout, AI creative tools and commerce reporting together. Confirm the integrations and workflows your store needs in your evaluation.

Request Access

14-day free trial · No credit card required

Sources checked September 8, 2026

  1. NMI — Testing methods
  2. NMI — Test and Deploy
  3. NMI — Testing, Sandbox
  4. NMI — Test Mode
  5. NMI — Other payer-authentication testing reference
  6. NMI — Customer Vault

Sources and product terms can change. Spot something outdated? Email info@admoji.com and we will review it.