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

WooCommerce Orders Stuck on Pending Payment with NMI

Pending payment means WooCommerce never got a confirmed result. Check the order notes, confirm in the NMI portal, then fix the order only after you know if money moved.

A WooCommerce order stuck on Pending payment with NMI means the order was created but WooCommerce never received a confirmed payment result. Either the customer never finished paying, the gateway declined and the customer left, or the payment went through at NMI and the result never made it back to the order. The fix depends on which, and you can tell by looking the order up in the NMI Merchant Portal before you change anything.

What Pending payment actually means

WooCommerce creates the order the moment the customer presses the pay button, with the status Pending payment. It moves to Processing or Completed only when the gateway reports success. So every abandoned checkout leaves a pending order, and that is normal. The problem is only the pending orders that have a successful charge behind them, or that pile up in unexpected volume.

Step 1: check the order notes

Open the order and read the notes on the right. NMI for WooCommerce records the gateway response on the order: authorization code, transaction ID, AVS and CVV results and the raw response code. Three outcomes:

  • No gateway note at all: no request reached NMI, or the page failed before sending it. Look at Collect.js loading and whether the card fields rendered.
  • A declined or error note: the customer saw a message and left. Read the response with the response, responsetext and response_code fields.
  • An approved note but status still Pending: payment succeeded but the order did not update. This is the urgent case: do not let the customer pay again.

Step 2: confirm in the NMI portal

Search the transaction in the Merchant Portal by the transaction ID from the note, or by order ID, amount and time if there is no ID. How the order number is passed to NMI depends on your plugin settings, so confirm it on a known good order first. Our guide to finding the NMI transaction ID for an order shows where each ID lives.

Use this rule:

  1. Portal shows approved: the customer was charged. Mark the order Processing manually and add an order note with the transaction ID. Do not refund unless the customer asks.
  2. Portal shows declined or nothing: no charge exists. Leave the order, or cancel it, and send the customer a fresh pay link from the order screen.
  3. Portal shows an authorization only: the money is held, not captured. Capture or void it on purpose, not by accident.

Common causes of a real stuck order

  • Timeout after approval. NMI approved, but the connection dropped before WooCommerce got the answer. Check NMI gateway connection errors and your host’s PHP time limits.
  • A fatal error after payment. Another plugin throws an error while the order is being finalized, such as an email, stock or analytics hook. The PHP error log shows it with a time stamp that matches the transaction.
  • 3D Secure left half-finished. The customer closed the challenge window. 3D Secure 2 is a Pro feature in this plugin; the order stays pending until the customer returns or you retry. See 3D Secure 2 for WooCommerce with NMI.
  • The customer closed the tab while the page was still working. Common on slow mobile connections.
  • Pre-orders and delayed charges. Some flows intentionally authorize first and charge later, so a status that looks odd may be by design.

Stop the clutter without hiding real problems

WooCommerce can cancel unpaid pending orders automatically after the number of minutes in WooCommerce, Settings, Products, Inventory, Hold stock (minutes). Set a value you are comfortable with and expect it to cancel abandoned orders. Before relying on it, make sure you have checked that no approved charge sits behind an order that is about to be canceled, because cancelation restores stock and can confuse the customer.

A weekly check that takes ten minutes

  1. List orders in Pending payment older than an hour.
  2. For each, look for a gateway note with an approval.
  3. Search the same period in the NMI portal for approved transactions that have no matching Processing order.
  4. Fix mismatches manually and write down the pattern: same time of day, same payment method, same device.

If the same pattern keeps repeating, turn on logging and capture one full failure; the steps are in logging and debugging NMI requests. More symptom guides are in the troubleshooting center and the troubleshooting docs.

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

Last reviewed November 2026.

Keep reading

NMI for WooCommerce

A troubleshooting reference for NMI orders

Use the troubleshooting docs to trace an order from checkout to the gateway.

Open troubleshooting docsSee pricing

Free on WordPress.org. Pro adds 3D Secure 2.