How To Test Woocommerce Checkout

Woocommerce is the #1 WordPress eCommerce Plugin and many websites use this plugin to sell their own products on the web. But since you need to set up the WooCommerce all by yourself which leaves space for mistakes.

In order to avoid big mistakes in payment and authentication, you need to test WooCommerce checkout.

To test the WooCommerce checkout, you will need to go through these steps:-

  1. Create a Sample products.
  2. Order the sample product using a demo customer account
  3. Checkout using the payment gateway.

So in this article, I will show you how you can test WooCommerce checkout with any payment gateway by following this simple and easy step-by-step guide.

Recommended: We recommend Yith WooCommerce Stripe Plugin – Download Now

Disclosure: I may receive affiliate compensation for some of the links below at no cost to you if you decide to purchase a paid plan. You can read our affiliate disclosure in our privacy policy.

Easy Steps to Test WooCommerce Checkout

If you have already set up your entire WooCommerce store the testing your WooCommerce checkout process is very simple and easy.

But if you have not set up your WooCommerce store then you can follow this guide on How to Create an eCommerce Website or Buy the Course – How to Create an eCommerce Store with WooCommerce, which included SEO, Security, Backup and much more.

So, I assume you have already set your WooCommerce Store, if not click the above below. Now let’s start testing our WooCommerce checkout page before offering it to the public.

1. Installing & Activating Payment Gateway

Payment gateway depends on your choice and the country you are offering your e-commerce services. Since there are a lot of payment gateways, we are going to use Stripe Payment gateway.

So after installing WooCommerce and Stripe Payment Gateway you need to follow the following steps:-

Test Woocommerce Checkout
  • Visit WP-Admin -> WooCommerce -> Settings -> Payments
  • Choose Stripe and click on Manage button
  • Enable the Stripe by clicking the checkbox.
  • Next is to enable the Test Mode
  • Enter the API Key and Save it.
  • Test your Checkout.

2. Turning on the Test Mode on the Payment Gateway

Test Woocommerce Checkout

Once you enable the stripe payment gateway, you need to check the box where it says, Enable test mode.

Now fill the “Test Publishable Key” and “Test Secret Key“.

To get your own API keys, you need to follow these simple 5 steps.

  1. Login to Stripe and Choose your Business Profile
  2. Click on API Keys under Developers Menu.
  3. Copy Publishable Key and paste it in WooCommerce “Test Publishable Key“.
  4. Now Click on Create Secret Key and Give it a name.
  5. Copy the Secret Key and paste it in WooCommerce “Test Secret Key“.

Click on the Save Changes button.

Now you are ready to make a test purchase and test the WooCommerce Checkout Page.

Do You Know: Learn how you can customize WooCommerce Checkout Page using Elementor.

3. Making a Purchase with a Demo customer account on Test Gateway

So all the settings are done now. All you need to do is to go and buy a product with new customer details and use a new demo credit card as your payment method.

Every payment gateway has its own test credentials and card details that you must use to make a purchase in a test account.

So to make a purchase with a demo customer account and by using test credentials are as follows:-

  1. Visit your website in a new browser or Incognito tab, where you are not logged in.
  2. Click on any product and then add it to cart
  3. Next checkout
  4. Fill Demo / test details for a new customer account
  5. Fill the credit card test credentials
  6. Click on Purchase Button.

If the purchase went successful then the payment gateway is working fine and now you need to disable it to accept real payments from your customer.

Test WooCommerce Checkout on Stripe

As of now, you have completed the setup of WooCommerce Payment Gateway and you will be using Stripe as your default payment gateway.

For testing the payment gateway using stripe, you will need the test card numbers. I have listed down all the test card numbers possible.

NumberCard BrandCVVValid Date
4242 4242 4242 4242VisaAny 3 digit Any date in the future (mm/yy)
4000 0566 5566 5556Visa (debit)Any 3 digit Any date in the future (mm/yy)
5555 5555 5555 4444MastercardAny 3 digit Any date in the future (mm/yy)
5105 1051 0510 5100Mastercard (prepaid)Any 3 digit Any date in the future (mm/yy)
3782 8224 6310 005American ExpressAny 3 digit Any date in the future (mm/yy)
6011 1111 1111 1117DiscoverAny 3 digit Any date in the future (mm/yy)

If you want to test International transactions then you can use the following cards given below.

4000 0003 6000 0006Australia (AU)
4000 0007 6000 0002Brazil (BR)
4000 0012 4000 0000Canada (CA)
4000 0025 0000 0003France (FR)
4000 0027 6000 0016Germany (DE)
4000 0037 2000 0005Ireland (IE)
4000 0038 0000 0008Italy (IT)
4000 0048 4000 8001Mexico (MX)
4000 0055 4000 0008New Zealand (NZ)
4000 0072 4000 0007Spain (ES)
4000 0082 6000 0000United Kingdom (UK)
4000 0582 6000 0005United Kingdom (UK) – Visa Debit

Card Details are taken from WooCommerce.

Test WooCommerce Checkout on PayPal

PayPal also has a Test mode but the process is difficult. Because you have to obtain a new email and password to log in to a test account on Paypal.

To do this, you need to log in to your PayPal account and go to settings, and then developer. Then enable the test credentials.

Now visit the test website and register and get your login id and password along with the API and other essential details.

The settings process is the same as stripe. You need to check the test box and then fill the test credentials.

Visit your store in a new incognito window and then click on a product and checkout it using Paypal as payment gateway.

If your test transactions went successfully then your Paypal payment gateway is ready to be used for real transaction.

Test Manual Captures on WooCommerce

To test a card payment authorization with manual capture:

  1. Go to Payments > Settings.
  2. Enable Manual Capture.
  3. Complete the steps to Test Card Payments.
  4. Go to WooCommerce > Orders.
  5. Click the order ID of the order created with a test card.
  6. Confirm the order has a note saying: A payment of $xx.xx was authorized using WooCommerce Payments.
  7. Click Choose an action.
  8. Click Capture charge.
  9. Click Update.
  10. Confirm the order has a note saying: A payment of $39.00 was successfully captured using WooCommerce Payments.
  11. Go to Payments > Transactions.
  12. Confirm a transaction with type Charge is listed.

Final Thoughts

That’s all.

However, your needs may be different from mine. Which plugin is your favorite, and are you currently using it on your site? Do you have any other recommendations to add? Please voice your thoughts in the comments below!

You can also subscribe to our YouTube and Like and Follow us on FacebookTwitter, and Instagram.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *