This article explains how to use Stripe test mode to check that a Learnybox payment form works correctly before using it under real conditions.
Your Stripe account must already be connected to Learnybox and successfully verified.
Step 1 – Check which Stripe account the payment form uses
In the settings of your payment form, confirm that Stripe is selected as the payment method.
The payment form must be connected to the same Stripe account that you will switch to test mode.
Step 2 – Enable test mode in Stripe
Log in to Stripe, then switch from live mode to test mode.
To enable test mode:
From the main dashboard, click the account selector area in the top-left corner, where your Stripe account or business name is displayed.
Hover over Switch to sandbox
In the submenu that appears, click Test mode
Confirm that Stripe has switched environments. Your account selector area should display Test mode, and a banner will appear indicating that you are now working in test mode.
Test mode allows you to simulate transactions using test card details without charging real money.
To find card numbers for different test scenarios, please refer to Stripe’s documentation on test cards.
Before continuing, check that your Stripe Dashboard is displaying test data.
In this environment, payments are simulated. They are not submitted to banking networks, and no real charge is made.
Step 3 – Make a test payment
Open the page containing the Learnybox payment form you want to test.
Complete the form with the required information, then use a Stripe test card. For example:
Card number:
4242 4242 4242 4242Expiration date: any future date, such as
12/34Security code: any three digits
Then submit the payment as usual.
⚠️ Important: You must use a test card number recognized by Stripe. Different test numbers can be used to simulate successful payments, declined payments, and other payment scenarios.
Step 4 – Return to live mode
Once you have completed your tests, return to Stripe and disable test mode. To do so:
From the main dashboard, click the account selector area in the top-left corner, where your Stripe account now shows that it's in Test mode.
Click Exit sandbox
Before making the payment form available to your customers, confirm that Stripe has returned to live mode.
What your customer experiences
During testing, the payment form follows the payment process configured with Stripe, but the transaction is entirely simulated and no real bank card is charged.
Once Stripe has been returned to live mode, customers must use their real payment details.
What should you do if the test payment fails?
Confirm that the payment form uses the same Stripe account that you switched to test mode.
Check that your Stripe Dashboard is displaying the test environment.
Make sure you are using a test card number provided by Stripe.
Remember that some test card numbers are specifically designed to simulate a declined payment. To test a successful payment, you can use
4242 4242 4242 4242.
At this stage, you can test your payment form without processing a real payment.




