Say you’re using the WP Full Pay plugin to sell products on your WordPress site without WooCommerce and accept Stripe payment.
Before making order forms live and accepting real payments, 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.
Test transaction 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.
Table of contents:
How to conduct Stripe test transactions?
Letâs take an example of how you can make a Stripe test transaction on WordPress site, using the WP Full Pay payments plugin that allows you to accept Stripe payments.
Making sure your Stripe integration with WordPress is setup correctly, you will need Stripe test cards (dummy cards) and test keys to conduct payment without a charge.
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.
NOTE: Testing Stipe payments on WordPress with WP Full Pay is FREE for all users. You can download WP Full Pay here.
We are assuming that you’ve created your Stripe account, installed WP Full Pay, and configured Stripe.
Testing Stripe transactions requires the following steps:
- Access your Stripe test API keys in Developers Dashboard in the test mode
- Add these test API keys into the relevant Stripe settings within your payment plugin on your WordPress site.
- 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.
Step 1: Access Stripe test API keys
- Go to your Stripe dashboard.
- Navigate to the Developers section.
- Ensure you are in Stripe test mode (check the test mode toggle).
- Find your publishable key in the Standard keys section.
- Click the âRevealâ button to get your test secret key.
Step 2: Set up Stripe test payments
- In your WordPress admin, go to your payment pluginâs Stripe settings.
- Switch to âTestâ mode.
- Enter your Stripe test API keys (that you get from Stripe dashboard) in the respective fields.
- Save your settings.
Step 3: Make test payments with Stripe test card
Now, you can run a test transaction on any published payment form. For example, you can perform test transactions on Stripe checkout pages including one-time, subscription, or donation forms.
- Open the payment page of your website in a browser.
- Put the Stripe test cards details to the input box (see below)
- Press the âPayâ button.
- And you are done!
You should be redirected to the âsuccessful paymentâ page (or thank you page) on your website.
Stripe test card details
Stripe test cards, also known as “dummy cards,” are virtual credit card numbers provided by Stripe for testing the integration of their payment gateway. They allow developers to simulate different types of transactions, including successful payments, failed payments, and various card-related scenarios, without using real card information.
Here are some commonly used Stripe test cards:
- Successful payment:
- Card number: 4242 4242 4242 4242
- Expiry date: Any future date
- CVC: Any 3-digit number
- ZIP code: Any 5-digit number
- Authentication required (3D Secure):
- Card number: 4000 0025 0000 3155
- Expiry date: Any future date
- CVC: Any 3-digit number
- Card declined:
- Card number: 4000 0000 0000 0002
- Expiry date: Any future date
- CVC: Any 3-digit number
- Insufficient funds:
- Card number: 4000 0000 0000 9995
- Expiry date: Any future date
- CVC: Any 3-digit number
- Expired card:
- Card number: 4000 0000 0000 0069
- Expiry date: A past date
- CVC: Any 3-digit number
- Incorrect CVC:
- Card number: 4000 0000 0000 0127
- Expiry date: Any future date
- CVC: Any 3-digit number (will fail validation)
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: