CRMFull CRM, checkout & AI ads — from $79/mo
◆ Guide

NMI test cards.
The numbers, straight from the docs.

You're here for card numbers, so they're in the first table below — no scrolling through preamble. Every value on this page comes from NMI's own published developer documentation, checked on September 3, 2026, with source links at the bottom. Below the table: how to trigger declines, how test mode differs from a sandbox account, and a pre-launch checklist for recurring billing.

UPDATED SEP 2026·6 MIN READ·ALL VALUES SOURCED
01 / The test cards

NMI test card numbers.

These are the card numbers NMI publishes in its testing documentation.1 They simulate approvals in test mode or a sandbox account, and they're the same across brands' happy paths — the differences that matter (declines, AVS, CVV) are driven by amounts and field values, covered in section 02.

BrandCard numberNotes
Visa4111111111111111The classic — most examples in NMI's docs use this one
Mastercard5431111111111111
Discover6011000991300009
American Express34111111111111115 digits, like a real Amex
Diner's Club30205252489926
JCB3541963594572595
Maestro679999010000000001919 digits — a good length edge case for your form validation
FieldTest valueNotes
Expiration10/29The standard test expiration in NMI's docs1
CVV999Triggers a CVV match response1
ACH account24413815For testing echeck/ACH transactions1
ACH routing490000018
Safe to use, safe to share. These aren't real cards and carry no cardholder data — they're the sandbox values NMI prints in its public docs. They only produce simulated approvals in test mode or a sandbox account; against a live account they're just invalid numbers.
02 / Simulating responses

Triggering declines, errors, and AVS/CVV results.

The part most people miss: on NMI, the interesting responses are driven by the amount and field values you submit, not by special card numbers. Per NMI's testing docs1:

To simulateSubmitWhat you get
ApprovalAny test card above, amount 1.00 or moreApproved response
DeclineAmount less than 1.00 (e.g. 0.50)Declined response — exercise your retry and dunning logic here
Fatal errorAn invalid card numberError response — tests your error handling, not just your decline path
AVS matchAddress1 = 888, zip = 77777AVS match response
CVV matchCVV = 999CVV match response

Declines, fatal errors, and field mismatches are three different code paths in your integration. A subscription business lives or dies on the decline path — that's the one that runs unattended at 3 a.m. on rebill day — so test it deliberately, not incidentally.

03 / Environments

Test mode vs. sandbox account.
Three ways to test, one big trap.

NMI's docs describe three testing methods1, and they behave differently enough that picking the wrong one causes real problems:

The trap, spelled out: account-wide test mode doesn't reject real cards — it fake-approves them. A store left in test mode looks completely healthy: orders come in, customers get confirmations, dashboards show approvals. No money moves. Make "test mode is OFF" an explicit item on your launch checklist, verified by a real card and a real (refunded) charge.
04 / 3DS testing

Payer authentication (3DS) test cards.

If your integration uses 3-D Secure, NMI's sandbox docs publish a separate set of cards that simulate specific authentication outcomes2 — frictionless flows, and challenge flows where the test challenge code is 12345:

BrandNot enrolledFrictionlessChallenge
Visa411111111111111141000000000001004100000000005000
Mastercard543111111111111151000000000001075100000000005007
American Express341111111111111340000000000108340000000005008
Discover679999010000000001964400000000001046440000000005004

Brand-to-number mapping as published on NMI's payer authentication testing page, observed September 3, 2026. Skip this table entirely if you're not running 3DS.

05 / Pre-launch checklist

What to test before a subscription business goes live.

For a one-off ecommerce store, an approved sale is most of the story. For recurring billing, the sale is the easy transaction — the ones that break are unattended. Before launch, run each of these end to end (general good practice, not NMI-specific):

  1. Straight sale. Test card, amount ≥ 1.00, confirm the approval lands everywhere it should — gateway, your database, the customer's email.
  2. Auth + capture. If you authorize at signup and capture later (common for trials), test both halves separately, and test an auth you never capture.
  3. Refund. Full and partial. Confirm your records and the customer notification both reflect it.
  4. Void. Cancel a transaction before settlement and confirm your system doesn't count it as revenue.
  5. Card-on-file rebill. Store the payment method, then trigger a recurring charge without the customer present. This is the transaction your subscription business actually runs on.
  6. The decline path. Amount under 1.00 to force a decline, then watch what your system does: does it retry? Notify the customer? Mark the subscription past-due? This path runs unsupervised — it has to work.
  7. Error handling. Send an invalid card number and confirm your checkout shows a human error message, not a stack trace.
  8. AVS/CVV responses. Use the match values (address 888, zip 77777, CVV 999) and confirm your fraud rules read the responses the way you intend.
  9. Test mode off. Last step, every time: flip test mode off and verify with one real card and a refund.
06 / Gotchas

Common mistakes.

07 / The bigger picture

Where NMI fits in a subscription stack.

NMI is a payment gateway: it moves the transaction between your site and your merchant account. What it doesn't do is the layer above — the checkout pages, subscription schedules, retry logic, upsells, and customer records that decide whether a subscriber stays. That's a billing layer's job, and it's what Admoji does: a checkout and CRM that sits on top of your own merchant account, with NMI gateways supported alongside Stripe, Authorize.net, and high-risk specialists.3 If you're still choosing the gateway itself, start with our guide to picking a subscription payment gateway — and once real rebills are flowing, chargeback prevention is the next thing to get ahead of.

08 / FAQ

Common questions.

Are NMI test card numbers safe to use and share?
Yes. They're the sandbox values NMI publishes in its own public developer documentation — not real cards, no cardholder data, nothing sensitive. They only produce simulated approvals in test mode or a sandbox account.
Do NMI test cards work in production?
No. They only simulate approvals in test mode or a sandbox account; against a live production account they're simply invalid numbers. The reverse is the dangerous case: while an account is in test mode, real cards get fake-approved without being charged — so verify test mode is off before launch.
How do I simulate a declined transaction on NMI?
Per NMI's testing docs, submit an amount less than 1.00 in test mode to trigger a decline. An invalid card number triggers a fatal error instead — test both, since they exercise different code paths in your integration.
Does Admoji work with NMI?
Yes. Admoji's published docs list NMI gateways among supported processors, alongside Stripe, Authorize.net, and high-risk specialists. NMI moves the transaction; Admoji handles the checkout, subscription billing, retries, and customer records around it — on your own merchant account.
◆ The billing layer

Your gateway's set up.
Now put a real billing layer on it.

Admoji runs checkout, subscriptions, retries, and CRM on top of your own merchant account — NMI included — for $79/mo + 0.35% of volume.

Start your free trial →

or see everything Admoji does →

14-DAY FREE TRIAL · NO CREDIT CARD REQUIRED · CANCEL ANYTIME

Sources — all observed September 3, 2026

  1. docs.nmi.com — 3 Different API Testing Methods — the test card numbers per brand, expiration 10/29, CVV 999, ACH test values, decline via amount under 1.00, fatal error via invalid card number, AVS match values, and the three testing methods (sandbox account, per-transaction test flag, account-wide test mode).
  2. docs.nmi.com — Testing Values for Payer Authentication — the 3DS test cards per brand for not-enrolled, frictionless, and challenge flows, and the test challenge code.
  3. admoji.com — supported processors (Stripe, Authorize.net, NMI gateways, high-risk specialists) and Launch pricing: $79/mo + 0.35% of volume, 14-day free trial.

Gateway documentation changes; values reflect what NMI published on the date above. If you spot something outdated, email info@admoji.com and we'll correct it promptly.

From $79/mo14-day free trial
Start free trial