How to test Stripe transactions?

How to test Stripe transactions? Step-by-step guide

Say you’re using the WP Full Pay plugin to accept Stripe payments on your WordPress site.

Before making payment forms live, it’s crucial to conduct a test transaction to ensure everything is functioning correctly.

A test transaction is a simulated payment process that occurs without actually transferring any real money. By completing a Stripe test transaction, you can validate and ensure the correct functioning of your payment system.

This step is crucial for developers, businesses, and website administrators using WordPress, as it ensures that the integration with Stripe is set up correctly and is working as expected.

How to conduct Stripe test transactions?

Let’s take an example of how you can make a test transaction on WordPress site, using the WP Full Pay payments plugin that allows you to accept Stripe payments.

First, ensure you have your Stripe test keys. Stripe provides a test mode secret key and a test mode publishable key for the testing environment.

Learn more about Stripe API keys and test and live modes.

We are assuming that you’ve created your Stripe account, installed WP Full Pay, and configured Stripe.

Testing Stripe transactions requires the following steps:

  1. Access your Stripe test API keys in Developers Dashboard in the test mode
  2. Add these test API keys into the relevant Stripe settings within your payment plugin on your WordPress site.
  3. Use Stripe’s demo card details on the live page of your site for a test transaction.

Now, let’s break down each step in detail.

To access Stripe test API keys:

  1. Go to your Stripe dashboard.
  2. Navigate to the Developers section.
  3. Ensure you are in test mode (check the test mode toggle).
  4. Find your publishable key in the Standard keys section.
  5. Reveal your test secret key by clicking the ‘Reveal’ button.
How to test Stripe transactions?

Setting up test transactions in your WordPress site:

  1. In your WordPress admin, go to your payment plugin’s Stripe settings.
  2. Switch to ‘Test’ mode.
  3. Enter your Stripe test API keys in the respective fields.
  4. Save your settings.
How to test Stripe transactions?

Now, you can run a test transaction on any published payment form, including Stripe checkout pages if you have a payment, subscription, or donation form that is already created and published. 

  1. Open the payment page of your website in a browser.
  2. Put the Stripe test cards details to the input box (see below)
  3. Press the “Pay” button.
  4. And you are done!

You should be redirected to the “successful payment” page (or thank you page) on your website.

Stripe test card details

When testing Stripe transactions, based on the billing country you can use the following information:

  • Stripe demo card number: 4242 4242 4242 4242;
  • The expiry date can be any date in the future;
  • Stripe demo card CVC: “123”

For visual guidance, refer to this video: