Founder deal: 75% off the lifetime licence. Unlimited sites, one payment, every update.See the founder plan
Home / Blog / Gateways and processors

How to Get an NMI Sandbox Account for WooCommerce Testing

Three ways to test NMI without charging real cards: a sandbox account, test mode on a live account, and a one-off test flag. Pick one and run it.

To get an NMI sandbox account, sign up at guide.nmi.com. NMI issues sandbox keys and sandbox merchant and partner portals where every transaction is simulated. Put the sandbox security key into your WooCommerce plugin’s sandbox mode, run test cards, and only then switch to live credentials. If you cannot get a sandbox, NMI also offers test mode on a real merchant account.

Three ways to test, and when to use each

  1. Sandbox account. A separate account with its own keys and portals. Best for building and for staging sites, because nothing can touch a real card.
  2. Test mode on your live account. In the merchant portal, go to Settings, then Test Mode, and enable it. Valid cards are approved and nothing is sent to the processor. You must disable it before launch, because test-mode transactions are not processed for payment.
  3. One-off test transaction. A request sent with a live key and the test flag set to enabled simulates only that transaction. It is mainly for developers and works on live accounts, not sandbox.

Rule of thumb: sandbox for staging, test mode only for a short final check on the live account, and never leave test mode on by accident.

Step by step: connect sandbox to WooCommerce

  1. Sign up at guide.nmi.com and open the sandbox merchant portal.
  2. Go to Settings, then Security Keys, and create a key with API permission, as in where to find your NMI security key.
  3. In WooCommerce, open the NMI gateway settings and set mode to sandbox. A banner appears at checkout so nobody mistakes it for live.
  4. Paste the sandbox key and the gateway URL your provider gives you for sandbox, then press Test connection.
  5. Place an order with a test card and confirm the order notes show an auth code and transaction ID.

Sandbox and live keys are separate, so keep them labelled and never point a staging site at production credentials. The plugin side is on the testing and sandbox page.

Test values that trigger specific results

  • Card: Visa 4111 1111 1111 1111 with any future expiry.
  • Decline: an amount under 1.00 is declined.
  • AVS match: address 888 with ZIP 77777.
  • CVV match: CVV 999.
  • Invalid card number: produces a data error, not a decline.

NMI’s documents have shown different example expiry dates over time, so use a date comfortably in the future. A fuller script of scenarios is in test card numbers and sandbox scenarios.

3D Secure test cards

For 3D Secure 2 (a Pro feature of the plugin), NMI documents these sandbox cards. Visa 4100 0000 0000 0100 runs a frictionless flow. Visa 4100 0000 0000 5000 triggers a challenge, which passes with code 12345 and fails with any other code. Confirm current values in NMI’s testing documentation before relying on them.

What sandbox cannot tell you

  • Wallets. Apple Pay and Google Pay need a real device and a real wallet, so test those separately.
  • Processor rules. Whether your live account allows ACH, certain card brands or Level III is decided by your processor, not by sandbox. Ask your provider before you go live.
  • Other features. Do not assume Customer Vault or reporting behave in sandbox exactly as in live. Check NMI’s documentation for anything you rely on.

Common mistakes

  • Test card in live mode, or live card in sandbox. See why test cards fail in live mode.
  • Sandbox key with the live gateway URL, or the reverse.
  • Forgetting to turn test mode off on a live account, so orders look paid but are not processed.
  • Using the Authorize.Net compatible endpoint with the wrong credentials, covered in compatible mode errors.

When you are ready to leave sandbox

Follow the go-live checklist: swap in the live key and endpoint, switch mode to live, place one real order with your own card, then refund it. Sandbox also helps subscription and membership stores prove renewals early; see memberships on your own merchant account. Compare gateway setups in the comparison hub.

Running NMI on WooCommerce? Free covers the basics and Pro adds the paid features. Compare Free and Pro.

Last reviewed November 2026.

NMI for WooCommerce

Test the plugin in sandbox first

Sandbox mode, a visible banner and separate credentials are built in.

Read testing docsSee pricing

Free plugin. No live card needed.