An NMI refund fails in WooCommerce for a short list of reasons: the transaction has not settled and needs a void instead, the amount is larger than what is left to refund, the transaction was already refunded or voided, the order has no valid NMI transaction ID, or the API key behind the plugin lacks permission. Read the exact message on the order notes first, then match it to the list below. Our troubleshooting docs show where those notes appear.
Start with the error text and the portal
- Open the order and read the newest order note. NMI returns a numeric
response_codeand free-formresponsetext; the text varies and often ends with a REFID that support can use. Copy it exactly. - Find the original transaction in the NMI Merchant Portal using the transaction ID. Check its type, result, and whether it shows as settled.
- Check whether a refund or void already exists against it.
Only then decide among the causes below. If you need to read the fields, see reading the NMI transaction response.
Cause 1: the sale has not settled yet
NMI documents a void as the way to cancel a transaction before settlement, and a refund as the reversal of a settled or pending-settlement transaction. If the portal shows the sale in an open batch, a void is the cleaner action, and a refund may be handled differently depending on your processor. The practical rule: same day, try a void; after the batch closes, use a refund. The full comparison is in NMI void vs refund. Batch timing is set by your processor and account, so check with them rather than assuming a cut-off time.
Cause 2: the amount is too high
A refund must be equal to or less than the original amount. Several partial refunds add up, so the sum cannot exceed what was captured. Open the order, add the refunded totals, and compare with the transaction amount in the portal. Shipping and tax count as part of the total. Partial refunds work in the Free plugin.
Cause 3: it was never a captured sale
If the original was an authorization that was never captured, there is nothing settled to refund. Void the authorization instead, or capture and then refund. See authorize now, capture later for how the statuses map.
Cause 4: it was already reversed
Look for an existing void or refund in the portal. Staff clicking twice, or a refund done directly in the portal while the order still shows paid, are common. If the portal shows a completed reversal, add a note on the order and set the status by hand. Do not try again.
Cause 5: the order has no usable transaction ID
The plugin refunds by the NMI transaction ID stored on the order. Orders paid with another gateway, imported orders, manual orders and sandbox orders have none, or an ID from a different account. Refund those where the payment actually happened. To check, see finding the NMI transaction ID for an order.
Cause 6: mixed sandbox and live data
An order created in sandbox mode cannot be refunded with live credentials, and the reverse. If the store was moved from sandbox to live and old test orders are refunded, the gateway will not find the transaction. Match the mode to where the order was created.
Cause 7: key permissions
NMI states that a security key inherits the permissions of the user it is tied to. If charges work but refunds or voids fail with a permission message, check that user’s rights in the Merchant Portal, or create a key tied to a user with refund permission. Do not paste keys into support tickets; support only needs the REFID.
Cause 8: processor or account limits
Your merchant account may restrict refunds, for example a limit per day, a refund-to-sales ratio, or the card brand or processor rejecting it. Those controls sit with your processor or reseller, not the plugin. If the message points to a processor error and the steps above check out, contact them with the transaction ID. See refunds and voids with NMI in WooCommerce for the normal workflow.
When the money cannot go back to the card
If the card is closed or the refund keeps failing, the card can still be refunded by the bank in some cases, but not in all. Ask the customer to confirm the card status, then agree an alternative such as store credit or a check, documented in writing. Keep this in line with your refund policy and confirm any rules with your acquirer.
Checklist
- Copy the exact response text and REFID.
- Find the transaction and its status in the portal.
- Void if unsettled, refund if settled.
- Check the total refunded so far.
- Confirm mode (sandbox or live) and key permissions.
- Contact your processor with the transaction ID if all of it checks out.
If the original payment itself looks wrong, read NMI payment approved but the order failed. Related guides live in the troubleshooting center.
Running NMI on WooCommerce? Free covers the basics and Pro adds the paid features. Compare Free and Pro.
Last reviewed November 2026.