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

NMI Response Code 300: Transaction Rejected by Gateway

NMI response code 300 is a gateway rejection, not a card decline. Read responsetext, then fix the field, credential, permission, duplicate or rule behind it.

NMI response code 300 means Transaction was rejected by gateway: NMI refused the request before it became a normal approve or decline. It is not a card decision. The reason is in responsetext, and the common ones are a missing or invalid field, credentials or key permissions, an action your user is not allowed to run, a duplicate, or a gateway setting or fraud rule. Read the text, fix that one cause, then retry once.

That is the practical difference from the 2xx codes. A 2xx means the issuer or processor answered about the card. A 300 means the gateway stopped the request itself, so asking the customer for another card rarely helps. The wider field layout is explained in the response fields guide.

What NMI documents, and what it does not

NMI’s result table defines 300 as Transaction was rejected by gateway and nothing more. The message text is free-form and varies, and many errors carry a REFID for support. The examples below come from third-party documentation and support articles, so treat them as illustrations of the kinds of text you may see, not official strings:

  • A duplicate transaction message with a REFID.
  • A message that a field such as the ZIP code or the CVV is required.
  • A message that the user is not allowed to process sale transactions.

Triage by the text you see

  1. Text says a field is required or invalid. The request was missing data the account demands, such as billing ZIP or CVV, or sent it in a bad format. Check which fields your gateway account marks as required in its settings and whether your checkout collects them. See CVV required errors with hosted fields if CVV is the missing item.
  2. Text mentions authentication or a key. Credentials. Go to the invalid security key guide.
  3. Text says the user is not allowed to run that transaction type. The key belongs to a user without permission for sale, auth, refund or vault. Fix the user permission or create a key under a user that has it, as described in the credentials documentation.
  4. Text names a duplicate. A duplicate check fired. See duplicate transaction errors, and check whether the first attempt already succeeded.
  5. Text mentions AVS, CVV or a filter. A gateway rule rejected it. See below.
  6. Text mentions the transaction type or amount. For example a type your account does not allow, such as a credit, which is usually disabled. Use refunds instead.

When settings or fraud rules cause it

The gateway can reject on rules you or your provider set in the Merchant Portal: AVS and CVV enforcement, velocity or fraud filters, and allowed transaction types. If good orders are being rejected, compare the rule list with the failing orders, then review AVS and CVV response codes and decide which rule is worth keeping. Which rules exist depends on your gateway and reseller.

Checklist before you contact support

  1. Copy the transaction ID if there is one, the order ID, the time, and the entire responsetext with its REFID.
  2. Check whether it is every order or only some. All orders points to credentials or permissions. Some orders point to data or rules.
  3. Check you are not in the wrong mode. Sandbox keys on a live account and the reverse both produce rejections.
  4. Check the plugin log, which redacts card numbers and the security key.
  5. Confirm your gateway is NMI. A reseller account may have rules you cannot see. See the gateway identification page.

What each layer controls

NMI defines the 300 code. NMI for WooCommerce shows the code and text on the order and passes the fields your checkout collects. Your gateway account, set by NMI, your reseller or your processor, decides required fields, permissions and rules, so confirm changes with them. For a broader view of the code table see NMI gateway response codes, and for a related false-decline angle read checkout settings that cut false declines. All of this sits under the troubleshooting documentation and the troubleshooting center.

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

Related guides: NMI Processor Response Codes vs Gateway Response Codes | Decline Code 57: Transaction Not Permitted to Cardholder | NMI Response Codes 400 to 461: Processor Errors and Merchant Setup Problems

Last reviewed November 2026.

NMI for WooCommerce

Read the response on every order

NMI for WooCommerce saves the response code and text to the order notes.

Open troubleshooting docsSee pricing

Redacted logging is free.