How to Set Up WooCommerce Test Mode Easily For Your Shop

A critical component for online business owners is payment facilitation. There is no customer and no purchase without it.

But how can you know if the checkout process is working? Have potential customers experienced difficulties making their purchase? Use WooCommerce test mode to check your website and keep potential customers.

Learn below more about the WooCommerce test mode in this article created by our team at wpDataTables.

5 Steps To Set Up a WooCommerce Payment Test

1. Put your shop in Test Mode

To run a LIVE store test it is best to use the free WooCommerce Stripe extension.

Install and set up the Stripe extension, and enable the WooCommerce Test Mode. It is now possible to test the checkout process. Use a Stripe test credit card to simulate purchase without a real payment.

To activate the Stripe payment, ensure that the test mode is correctly configured. To access the Stripe configuration go to WooCommerce – Settings –Payments – Stripe.

Select the “Activate Test Mode” option and save the changes. The payments section will automatically go into test mode.

Next, copy and paste the new Test Publishable Key and Test Secret Key into your WooCommerce Stripe settings. Click “Save Changes”.

Please note: Other methods of payment such as PayPal will be addressed in another article.  PayPal and additional methods of payment will not be affected by changes made here.

2. How to find your Publishable Test and Secret Keys

Start by logging in to your Stripe business account.

In the menu click Developers> API keys. Locate the access button in the upper corner that enables test mode or live mode.

Your account will have two sets of API keys – Live and Test. To access both, use the toggle switch in the left menu. Select “View Test Data”. Test keys will have ‘a _test_ text’ in the name.

Copy & paste the number of your Stripe account keys into the corresponding WooCommerce field. Don’t forget to leave the test mode enabled and click save.

3. Simulate a Payment using a Test Credit Card in WooCommerce Test Mode

Now you can make a test purchase using the buyer test account. All viewable screens such as deposits, transactions, and disputes will appear in test mode only.

To use a test card to simulate a Stripe payment:

  • Go to your shop’s public URL e.g. or a specific product page.
  • Add a product to the shopping cart.
  • Preview your cart (if using AJAX or products).
  • Click → “Proceed to Checkout”.
  • Enter the billing details. Fill in all required fields such as the shipping address. For testing purposes, any valid details will work.
  • Enter the following card details in the Credit Card Number field: 4242424242424242.
  • Card expiration date (MM / YY): ensure the date is valid and not expired.
  • Card Code (CVC): enter a valid three-digit number.
  • Click → “Place Order”.
  • WooCommerce checkout with a test credit card.

Congratulations! If the settings are correct, you have just made a test payment. The order will be confirmed and the transaction is complete.

4. How to test credit cards for other payments processors

Since the test card is only valid for use with Stripe, it is still necessary to test other payment gateways, like PayPal. This is possible by using dummy credit card numbers or a Credit Card Number Generator.

Below are credit card numbers and sandbox/test mode options to use for testing purposes. These have been provided by some of the most popular WooCommerce payment processors.

Number Card Brand
4142 4142 4142 4142 Visa
4000 0544 5444 5444 Visa (debit)
5555 3333 3333 3333 Mastercard
5105 5105 5105 5105 Mastercard (prepaid)
3456 7890 1234 005 American Express
6000 1111 2222 3333 Discover

5. Expiration Dates & CVC

In test mode enter a present or future date in the expiration field (example: 01/04). For the CVC, try any valid 3-digit number (example: 444).

Be aware that, unlike the majority of credit cards, American Express requires a 4-digit CVC.

To test exact error codes provide information that is invalid or incorrect. The following are examples that will result in error codes:

  • Using an invalid month (like 15)
  • Using a year in the past (like 1980)
  • Using a two-digit number (like 98)

How to test payments with the PayPal Sandbox

Before activating your website for use by buyers, it is helpful to test the integration. A simple simulated payment verifies the configuration without any money changing hands.

Go to the PayPal developer page

Sandbox accounts require login credentials. To obtain these, log in to the PayPal developer page using your PayPal username and password. In the Developer Dashboard → “Sandbox” – “Accounts”.

Create PayPal Sandbox test accounts

Create two test accounts:

  • a test seller (the merchant account)
  • a test buyer (the customer)

Click → Create Account

Create a bogus email for test purposes. Something like [email protected] will act as a reminder that it is a merchant account. Add a name for the merchant account as this will be displayed on the payment page later.

Hey, did you know data can be beautiful too?

wpDataTables can make it that way. There’s a good reason why it’s the #1 WordPress plugin for creating responsive tables and charts.

An actual example of wpDataTables in the wild

And it’s really easy to do something like this:

  1. You provide the table data
  2. Configure and customize it
  3. Publish it in a post or page

And it’s not just pretty, but also practical. You can make large tables with up to millions of rows, or you can use advanced filters and search, or you can go wild and make it editable.

“Yeah, but I just like Excel too much and there’s nothing like that on websites”. Yeah, there is. You can use conditional formatting like in Excel or Google Sheets.

Did I tell you you can create charts too with your data? And that’s only a small part. There are lots of other features for you.

How to set up the WooCommerce PayPal settings

Return to your WooCommerce shop to test a purchase. In the WordPress dashboard click on WooCommerce → Settings → Payment gateways → PayPal. Set it up as follows:

  • Check the ‘Enable PayPal standard’ option and confirm
  • Enter the bogus Merchant email address in the PayPal & Receiver email box
  • Check the ‘Enable PayPal Sandbox’ option

PayPal’s test mode is now active and it will only handle test payments. If a real purchase is made while test mode is active, the purchase will be denied.

Note: If other payment processors are active, such as bank transfer or, they will process real payments.

How to test a purchase

For this step, remember to use the test account created for the buyer. From another browser visit your shop, click on a product, and hit the “Place Order” button. You will automatically be directed to the PayPal Sandbox to process the payment.

Important: To confirm test status, the words “test store” will appear in the shop name, and the URL will be PayPal may add a Test Site label in the upper or lower part of the page.

Log in with the created buyer test account and confirm the payment. Click → Return to the merchant link to finish the order.

Other WooCommerce Test Modes

Testing refunds

If you want to do a refund test:

  • Pay for an order
  • Now in WP Admin, go to WooCommerce > Orders.
  • Click on the Order ID of the order created earlier.
  • Hit the Refund link.
  • Add the refund amount and, if desired, the reason for the refund.
  • Then hit the refund button via WooCommerce Payments.
  • Next, go to Payments > Transactions and confirm the refund transaction is in there.

Testing Manual Captures

You can test a card payment authorization using manual capture:

  • Go to Payments > Settings.
  • Enable manual capture.
  • Buy an item for testing purposes.
  • Then go to WooCommerce > Orders.
  • Click on the order ID of the order created earlier.
  • Confirm the order has a text saying: “A payment of $xx.xx was authorized using WooCommerce Payments”.
  • Choose an action → Capture charge → Update.There should be a note on the order saying: “A payment of $39.00 was successfully captured using WooCommerce Payments”.
  • Finally, go to Payments > Transactions and check if there is a transaction with the “charge” type listed.

FAQs about WooCommerce test mode

1. What is WooCommerce test mode, and how does it work?

The WooCommerce test mode functionality enables you to test your online store’s checkout procedure without actually completing a transaction.

As a result, you may test your store’s functionality without running the risk of losing money. In test mode, you can replicate a transaction by using phony payment gateways or test payment credentials. When you are opening a new store or making adjustments to your current one, this function is quite helpful.

2. How can I enable test mode in WooCommerce?

It’s simple to enable test mode in WooCommerce. To begin, sign in to your WooCommerce account and go to the Settings menu’s Payments section. You can then choose a payment gateway and activate test mode from there. To use test mode, you might need to get test API credentials from your payment gateway provider.

3. How do I test transactions in WooCommerce test mode?

You can use fictitious payment gateways or phony payment credentials to test transactions in WooCommerce test mode. To replicate the checkout process, you may also create test products and add them to your store.

Once test mode has been activated, and your test products and payment gateway have been configured, you may simulate a transaction to ensure that everything is functioning as it should.

4. Can I use real payment gateways in WooCommerce test mode?

No, the WooCommerce test mode does not allow you to use actual payment gateways. This is so that test mode, which doesn’t actually process any payments, can mimic transactions. Transactions will be rejected if you try to use genuine payment credentials in test mode.

5. How do I disable test mode in WooCommerce?

It’s easy to disable test mode in WooCommerce. Choose the payment gateway you want to disable test mode for by going to the Payments section of the Settings menu. Next, deactivate the toggle for test mode. This will enable your business to process actual transactions.

6. What happens when I process a transaction in WooCommerce test mode?

The transaction you carry out in WooCommerce test mode is simulated; no actual payment is carried out. As a result, you may test your store’s functionality without running the risk of losing money. In your WooCommerce dashboard, the order will be identified as a “test” order so that you can readily identify it from actual orders.

7. Do I need to use test mode in WooCommerce before going live with my store?

Before launching your store online, WooCommerce test mode is strongly advised. By doing so, you may test the checkout procedure and make sure everything is operating as it should. You can find any problems or faults by testing in test mode before processing actual transactions.

8. Can I customize the test mode settings in WooCommerce?

The test mode settings in WooCommerce can be changed, yes. This entails configuring test products, turning on/off payment gateway test mode, and employing test payment credentials. For test orders, you can also modify the email notifications and order status.

9. How can I ensure that my WooCommerce test transactions are successful?

You should carefully follow the guidelines supplied by your payment gateway provider if you want to be sure that your WooCommerce test transactions are successful.

Moreover, you ought to test the checkout procedure numerous times to ensure that everything functions as it should. Review the logs and conduct a problem-solving procedure if you come across any mistakes or problems before continuing.

10. Is there a limit to the number of test transactions I can process in WooCommerce test mode?

You can process as many test transactions as you want in WooCommerce test mode. Test orders, however, should not be used for accounting or financial reporting reasons because they do not represent actual transactions. Whenever they are no longer required, test orders should be removed from your WooCommerce dashboard.


If you enjoyed reading this article on how to set up WooCommerce test mode, you should check out this one about how to set WooCommerce related products.

We also wrote about a few related subjects like WooCommerce grouped product, WooCommerce variable product, WooCommerce redirect after checkout, WooCommerce appointments plugins, WooCommerce product variations, how to export export WooCommerce orders, how to change the WooCommerce number of products per page, WooCommerce hide category from shop page and the best WooCommerce extra product options.

Milan Jovanovic
Milan Jovanovic

Product Lead

Articles: 203