To test a payment gateway on HPOS, place sandbox orders, then confirm that everything the gateway wrote about the payment (transaction ID, authorization state, notes, any custom order meta) can be read back and used for a refund, void or capture, including on orders created before the migration. A gateway that stores data with post meta functions can look fine at checkout and fail later, when you try to act on the order. This is the order meta test plan for any gateway moving to WooCommerce HPOS, with the NMI specifics noted.
Why gateways break on HPOS
With HPOS, orders live in their own tables instead of the posts tables. Code that calls get_post_meta() on an order ID, or queries wp_posts for orders, no longer sees the real data. Code that uses the order object ($order->get_meta(), $order->get_transaction_id()) keeps working. The failure is quiet: the sale goes through, the customer is happy, and the refund button later cannot find the transaction.
NMI for WooCommerce supports HPOS on the Free plan. Treat that as the vendor’s statement, and still run the plan on your own data. Your other order-touching plugins are the more common culprits. The wider compatibility picture is in the compatibility hub.
Before you start
- Work on a staging copy with real order history, not a fresh install.
- Use sandbox credentials. The setup is in testing and sandbox. Never test refunds with live keys.
- In WooCommerce, Settings, Advanced, Features, check the plugin compatibility list for any plugin flagged as incompatible with HPOS.
- Turn on compatibility mode (writing to both storages) first, so you can roll back.
The test plan
Run each step with HPOS as the authoritative storage and sync still on.
- New order, sale. Place a sandbox order. Open it and confirm the transaction ID, auth code, and AVS and CVV results are on the order. Finding the ID is covered in how to find the NMI transaction ID for an order.
- Partial refund. Refund part of the amount from the order screen. Confirm the gateway accepted it and a refund line appears.
- Full refund and void. On a second order, void before settlement. See refunds and voids with NMI for which to use.
- Authorize then capture. If you use authorize-only, authorize an order, capture part of it, and confirm the status moves correctly. See partial capture.
- Pre-migration order. This is the step people skip. Pick an order placed before the migration and refund part of it. If the gateway cannot find its transaction ID, the meta did not migrate or the plugin reads the wrong place.
- Search and filters. Search for an order by customer email and by transaction ID, and filter by status. Gateways that add searchable meta can lose this.
- Order notes and emails. Check the response note is added and the receipt email shows the right totals.
- Failure path. Use a sandbox decline (an amount under 1.00 declines in NMI sandbox testing) and confirm the order lands in the right status with a readable note. Compare against the decline diagnosis order.
- Saved cards and subscriptions. If you run them (Pro and Enterprise respectively), place and renew one.
Check the data, not just the screen
WooCommerce ships WP-CLI commands for HPOS under wp wc hpos (older versions use wp wc cot). Run wp help wc hpos on your version to see the status, sync and verify commands, and run the verify command before you disable compatibility mode. A mismatch report tells you which orders have data in one storage but not the other.
Decision rule
- All nine steps pass, including the pre-migration refund: disable sync only after a week of normal trading.
- Any step fails on a pre-migration order only: run the sync or verify command again, then retest before going further.
- Any step fails on new orders: stop, switch authoritative storage back, and ask the plugin author. Do not patch order meta by hand.
Moving gateways at the same time compounds the risk. If you are also changing plugins, do it in a separate window; the Stripe to merchant account guide covers sequencing for that move. Do not change the checkout layout on the same day either, which is covered in the block vs classic checkout post.
Related guides: NMI White Label Payment Gateway: How Reseller Branding Works | What Is the NMI Payment Gateway? A Plain Guide for WooCommerce Owners | NMI Payment Gateway API Explained: Payment API, Collect.js and Query API
Last reviewed November 2026.