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

NMI Gateway Connection Errors in WordPress

Work out whether a WordPress NMI connection error is your host, the gateway or the processor, and fix each in the right order.

An NMI gateway connection error means your WordPress server could not complete a request to the gateway, or the gateway could not reach the processor. Work out which side failed first. If the order notes contain no NMI response at all, the request never arrived: check outbound HTTPS from your host, TLS, DNS and a firewall. If there is a response with a 420 or 421 code, the gateway reached the processor or issuer and the communication failed there.

That split matters because the fixes belong to different people. Your host controls outbound connections. NMI controls the gateway. Your processor controls the link beyond it. The troubleshooting documentation shows where the plugin log lives, which is where you start.

Step 1: find out whether any response came back

Open the failed order and the plugin log. Two outcomes:

  • No gateway response, or a generic timeout or cURL error. The request did not complete. Go to step 2.
  • A response with response=3 and a code. The gateway answered. Read the code. 420 is a communication error and 421 a communication error with the issuer, both documented by NMI. 301 with “Rate limit exceeded” means you are sending too many requests, and HTTP 429 is the system-wide limit. Wait instead of retrying. Codes in the 3xx range from authentication are covered in the invalid security key guide.

Step 2: check your server can reach NMI

  1. Outbound HTTPS. The classic API posts to secure.nmi.com. Ask your host, or test from the server, that outbound port 443 to that host is allowed. Some hosts block outbound connections by default.
  2. TLS and CA bundle. An old PHP or OpenSSL build, or an outdated certificate bundle, makes the handshake fail. Ask the host to confirm current TLS support.
  3. DNS. If the server cannot resolve the host name, every request fails. Intermittent failures often point to a flaky resolver.
  4. Firewall and security plugins. A server firewall or WordPress security plugin may block the outgoing call. Temporarily allow the host, retest, then keep the allow rule.
  5. Proxy settings. If WordPress is configured with a proxy, confirm the NMI host is allowed through it.

Step 3: check the browser side separately

Card entry uses Collect.js, which loads from NMI into the checkout page. If the form never appears, that is a browser problem, not a server one. A strict Content Security Policy that blocks secure.nmi.com is a documented cause. A tokenization key mistake is another. Do not mix this up with a server connection error: a blank card field and a timeout at order placement are different failures.

Step 4: check the endpoint your account uses

A reseller or white-label account may live on a different host from the standard one. The plugin posts to the gateway URL your account is on, and a reseller can require its own. If you are not sure your account is NMI at all, use the gateway identification page, then check the credentials docs. Ask your provider which domain your account is hosted on.

Step 5: tell timeouts from declines

A timeout is not a decline. The customer may or may not have been charged. Before telling the customer to try again, search the NMI Merchant Portal for the order ID or amount. If a transaction exists, do not charge again. That is how double charges happen, and the gateway response codes overview helps you read what the portal shows.

What to send support

  • The exact time of the failed attempt, in your server’s time zone.
  • The order ID and amount.
  • The response code and full responsetext, including any REFID.
  • Whether it happens on every order or only some.
  • The plugin log lines around the failure, with card data already redacted by the plugin.

If you use the Authorize.Net compatible mode, errors can be worded differently, see that error guide. The wider set of fixes lives in the troubleshooting center.

Related guides: What Is the NMI Payment Gateway? A Plain Guide for WooCommerce Owners | NMI Payment Gateway API Explained: Payment API, Collect.js and Query API | NMI Support: Who to Contact for Gateway, Processor and Plugin Problems

Last reviewed November 2026.

NMI for WooCommerce

Read the log before you guess

The troubleshooting docs show where the plugin log is and what to send support.

Open troubleshooting docsSee pricing

Logs redact card data automatically.