[WooCommerce] WP NMI Gateway PCI Payments

Required for this integration:


Supported Features:

  • Tokenization - This gateway tokenizes payment methods in a way that allows Autoship Cloud to create and pay for recurring orders automatically.
  • Authorize Only - This type of transaction is not currently supported for Autoship Cloud.  Please use Authorize and Capture to avoid issues with recurring billing.

Setting up NMI Payments with Autoship Cloud

Use the NMI Sandbox API Username and Password entered into WooCommerce above and follow the steps in outlined  in our doc here to start testing quickly. You are now ready to test Checkout and Scheduled Orders with Autoship Cloud.

Testing NMI Payments with Autoship Cloud

Before using a payment gateway in Live Mode, it is necessary to ensure that it works in Test Mode (sometimes referred to as Sandbox Mode).


What to know before testing NMI Payments:

  • The NMI gateway does not have different endpoints for test and production. In order to use a test account, you will need to visit your merchant control panel (Settings > Test Mode > ‘Enable Test Mode’).
  • "Test Mode" is not a setting for NMI Payments because enabling the testing environment is only controlled by the settings in the NMI Merchant Portal.
  • By default, all gateway accounts have a duplicate threshold setting of 1200 seconds (20 minutes). This time period can be adjusted, overridden, or turned off completely. Customers will have to contact their merchant service provider to adjust this setting.

How to test NMI Payments: 

  1. Ensure your NMI Merchant Portal is set to "Test Mode"
  2. Visit your store as a customer (make sure you are logged out as WP Admin)
  3. Put an Autoship enabled item in your cart.
  4. Complete a checkout using a credit card for NMI Payments as the payment method using  sandbox credit card info.
  5. Verify that the order has been successfully processed. 
  6. Log back into your site as WP Admin, navigate to Autoship Cloud > Scheduled Orders, and verify that the newly created schedule is present in your list of Scheduled Orders with the payment method used at checkout attached.
  7. Then select "Process Now" to test processing the saved payment method on the created Scheduled Order.

Going Live:

Once you have successfully completed an Autoship Cloud checkout and verified that a Scheduled Order was created and the payment method was saved, you are ready to enter Live Mode (in which actual charges will be created). 

To do this you will need to:

  1. Create and/or Login to your NMI Merchant Portal and ensure that 'Test Mode' is disabled ( My Settings > Test Mode > ‘Enable Test Mode’)
  2. Navigate to WP Admin > Woocommerce > Settings > Checkout > NMI, change the setting for Environment from "Test" to "Production", and enter the username and password from your NMI account. Click "Save changes".

Additional Resources

Customer updated their saved payment method's billing address? 

When a customer updates their billing address on payment methods saved to NMI, it is recommended they create a new payment method in My Account > Payment Methods after updating their Billing Address in My Account > Addresses.

You can learn more about this process here: How Customers Update Their Billing Address