Testing the Stripe WooCommerce Extension

The Stripe extension is very versatile. A part of this versatility is a dedicated way to perform test transactions on your WooCommerce site via the built-in test mode feature. This allows you to make purchases using Stripe test cards.

Performing test transactions while in test mode is a great way to simulate the customer experience or troubleshoot issues without having to charge real payment methods.

In this guide, you will learn how to configure the Stripe extension to enable test mode and accept test payments.

Configuring the Stripe extension for testing

↑ Back to top

When you initially connect the Stripe extension to your Stripe account, it only connects in live mode. Connecting to your Stripe account’s test mode is a separate process. To connect in test mode:

  1. Go to WooCommerce > Settings > Payments tab.
  2. Click the Manage button for the Stripe payment method.
  1. Click the Settings tab in the Stripe settings page.
  1. In the Account details section, click the Configure connection button.
  1. Click the Test tab to view the connection status of test mode.
    • If you haven’t configured test mode yet, the account status will say “Disconnected.”
  2. Click the Create or connect a test account button.
  1. You will be prompted to connect to your Stripe account in test mode. Click Connect to do so.
  1. You’ll be redirected back to the Stripe settings page in your WordPress dashboard.
  2. Click the Configure connection button in the Account details section again.
  3. Confirm that the connection to your account’s test mode is working.

Now that you’ve connected to your Stripe account’s test mode, you can enable test mode and start using test cards.

Connecting to a test only Stripe account

↑ Back to top

If you’ve created a Stripe account but not activated your account yet by entering your business information, you may wind up with a test-only account that looks like this:

If you’d like to connect our Stripe plugin to this account, you can do so by using the Create or connect a test account instead link on the connection screen.

You’ll be taken to Stripe.com to connect, but since your account is test-only, you can simply click the Skip this form button.

Doing so will return you to the WordPress dashboard with the Stripe plugin already in test mode and connected to your test-only Stripe.com account.

You can click the Configure connection button and then select the Test tab to verify that the plugin is working correctly.

Enabling test mode

↑ Back to top

After you’ve connected to Stripe in test mode, you can enable test mode in the Stripe extension like so:

  1. Navigate to WooCommerce > Settings > Payments > Stripe > Settings in your WordPress admin dashboard.
  2. Check the Enable test mode option in the General section.
  1. Scroll to the bottom of the page and click Save Changes.

See the next section for instructions on how to use test mode.

Using test mode

↑ Back to top

Once test mode is enabled, you can make a test purchase by:

  1. Navigating to your store’s shop page.
  2. Adding a product to your cart.
  3. Proceeding to the checkout page.
  4. Adding a Stripe test card as a payment method.
    • There are numerous cards for testing different scenarios, such as successful payments, card declines, disputes, etc.
  5. Clicking the Place order button.
  6. If you used a card that resulted in a successful payment, you’ll be redirected to the “Order received” page just as if the transaction were real.

Using test mode with express checkouts

↑ Back to top

You can also test the Stripe extension’s express checkout methods while in test mode.

For Google Pay, you’ll need to add one of the Stripe test cards to your Google account. If you’re testing Apple Pay, you simply use your real card information while in test mode. This of course will not actually place a charge on your card.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.