NMI test cards

Use these details to try payments in an NMI sandbox (test) account. They work only in the sandbox: never use them in live, and never put real card or bank details into a sandbox.

NMI sandbox accounts are available through NMI’s developer site, guide.nmi.com. An NMI account can also be switched into test mode, where NMI approves every valid card without charging it. Declines are triggered by the payment amount.

Use the expiry date 10/29, NMI’s test expiry date.

Card Number Notes
Visa 4111 1111 1111 1111
Mastercard 5431 1111 1111 1111
American Express 3411 111111 11111
Discover 6011 0009 9130 0009
Diners Club 3020 5252 4899 26
JCB 3541 9635 9457 2595
Maestro 6799 9901 0000 0000 019
Number or trigger Result
Amount less than 1.00 Declined

These are for NMI sandbox accounts. NMI’s 3D Secure testing page lists a different set of cards for accounts in test mode.

Number Result
4111 1111 1111 1111 (Visa), 5431 1111 1111 1111 (Mastercard), 3411 111111 11111 (American Express) Not enrolled: no authentication takes place
4100 0000 0000 0100 (Visa) No challenge: authenticated
5100 0000 0000 0107 (Mastercard) No challenge: authenticated
3400 000000 00108 (American Express) No challenge: authenticated
6440 0000 0000 0104 (Discover) No challenge: authenticated
4100 0000 0000 5000 (Visa) Challenge: enter 12345 to pass, any other code to fail, or close the challenge to cancel
5100 0000 0000 5007 (Mastercard) Challenge: enter 12345 to pass, any other code to fail, or close the challenge to cancel
3400 000000 05008 (American Express) Challenge: enter 12345 to pass, any other code to fail, or close the challenge to cancel
6440 0000 0000 5004 (Discover) Challenge: enter 12345 to pass, any other code to fail, or close the challenge to cancel
Value Result
Address line 1 888 and ZIP code 77777 Address check matches
CVC 999 CVC matches
Routing number Account number Result
490000018 24413815 NMI’s test bank account. NMI doesn’t list ACH decline or return triggers
123123123 123123123 (savings) Approved. Used in our own tests