On this page
What this issue is
Most payment gateways (Stripe, PayPal, Square, Authorize.net and others) have two environments. Test mode (Stripe) or sandbox (PayPal) uses fake money and special test cards. Live mode uses real cards and real bank accounts. Each environment has its own API keys, which are the secret codes that connect your store to the gateway.
Why it costs you leads or sales
Real customers cannot pay you. Either their card is declined with a confusing error, or they see a thank-you page and you ship goods you never got paid for. Ad spend keeps sending buyers to a checkout that cannot earn revenue, and your purchase conversions in analytics may be inflated by orders that are not real.
- Product pageVisitor adds to cart
- CheckoutDetails entered
- Payment (test mode)Real card declined or no funds move
- RevenueNo money received
- Purchase trackingWrong or missing conversion
The customer reaches payment, but the gateway cannot take real money.
Example: illustrative numbers only, showing real paid orders before and after switching to live mode.
How to check if your site has it
Look for signs in three places: the storefront, the gateway dashboard and your order list.
- Open your checkout in a private window and look for banners such as 'Test mode', 'Sandbox' or 'Test mode enabled'.
- In the gateway dashboard, check the Test mode toggle (Stripe shows it at the top of the dashboard).
- Check your store's payment settings for a test, sandbox or developer option that is ticked.
- Look at recent orders: are the card details fake (for example Stripe's 4242 4242 4242 4242)? Are paid orders missing from the gateway's live payments list?
- Compare your keys: Stripe test keys start with pk_test_ and sk_test_, live keys with pk_live_ and sk_live_.
- Place a real order of the smallest value you sell, then refund it.
| Key | Test mode | Live mode |
|---|---|---|
| Publishable key | pk_test_... | pk_live_... |
| Secret key | sk_test_... | sk_live_... |
| Dashboard | Test mode toggle on | Test mode toggle off |
How to fix it
Finish gateway account activation
Live payments need a fully activated account. Complete business details and bank account in the gateway dashboard.
Copy the live API keys
In Stripe, switch off Test mode, then open Developers, API keys. For PayPal, use the Live credentials, not Sandbox.
Turn off test mode in your store
Untick the test or sandbox option and paste the live keys. Steps differ by platform, see below.
Update webhooks
Webhooks are the messages the gateway sends back to your store. Live mode needs its own webhook endpoint and signing secret, created while Test mode is off.
Clear caches
Purge page, plugin and CDN caches so the checkout stops showing test banners or old keys.
Open the gateway settings
In WooCommerce go to WooCommerce, Settings, Payments, then open your gateway (for example Stripe).
Disable test mode
Untick the 'Test mode' or 'Enable test mode' option and enter the live publishable and secret keys. Save.
Recreate the webhook
Follow the plugin's webhook instructions for live mode, then purge your caching plugin.
Open payment settings
Go to Settings, Payments.
Remove test or bogus gateway
If Shopify Payments shows 'test mode', deactivate it in the Manage menu. If a third-party gateway has a test option, turn it off. Remove the Bogus Gateway, which only works on development stores.
Complete activation
Finish any account verification steps so real cards are accepted.
Open Ecommerce settings
Go to Site settings, Ecommerce, Payments (Stripe).
Connect live Stripe
Make sure the connected Stripe account is in live mode and not a test connection, then republish the site.
Open accept payments
Go to Settings, Accept Payments.
Check provider mode
Make sure the provider is connected with live credentials and any 'test' option is off. Then publish the site.
Open Payments
Go to Commerce, Payments.
Disable test mode
If Stripe or PayPal shows a test mode switch, turn it off. Squarespace may show a banner that the store is in test mode until you do.
Open payment integrations
Go to Payments, Integrations and select your gateway.
Switch mode
Change the mode from Test to Live and connect the live account. Check that every order form and funnel uses the live mode.
Swap keys by environment
Load live keys from environment variables on production only, never hard-coded test keys.
Remove test banners
Delete conditional test-mode notices from your templates.
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
if (process.env.NODE_ENV === 'production' && !process.env.STRIPE_SECRET_KEY.startsWith('sk_live_')) {
throw new Error('Production is not using a live Stripe key');
}How to confirm it's fixed
- No test or sandbox banner appears on cart, checkout or payment pages.
- The gateway dashboard is in live mode and shows the new payment.
- A real low-value order completes and the money shows in your live payments list.
- Refund the test order afterwards.
- Webhook events show as delivered in live mode.
- The order appears in your store and any CRM, and the purchase hit reaches analytics once.
How to prevent it happening again
Add a go-live step to every launch and migration: check the gateway mode, keys and webhooks before announcing. Keep test and live keys in separate environment variables, restrict who can change payment settings, and re-check after plugin or theme updates. Run a scheduled check on the live checkout so a mistake is caught within a day, not after a week of lost orders.
How FunnelGuard handles this
FunnelGuard detects this issue only partly. It runs your checkout journey on a schedule and checks the pages for visible 'test mode' text (a text-absent check). If a banner such as 'Test mode' appears on a step, you get one alert with a screenshot and a likely cause, after a re-check from a second region.
What it does not do: it cannot see which API keys your store uses, read your gateway dashboard, or tell that a gateway is in test mode when the page shows no banner. It also never enters real card details and stops before payment unless your store's test mode is set up, so it will not prove that a real payment goes through.
- After every launch, migration or plugin update, check the gateway dashboard for the live/test toggle.
- Check that the keys start with live prefixes.
- Once a month, place a small real order and refund it.
- Compare orders in your store with payments in the gateway.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.
Questions people ask
How do I know if my payment gateway is in test mode?
Check the gateway dashboard for a Test mode toggle, look at your store's payment settings for a test or sandbox option, and check whether your API keys contain 'test'. Stripe test keys start with pk_test_ and sk_test_. A visible 'test mode' banner at checkout is another sign.
Why is my live store not taking real payments?
A common cause is the gateway still using test keys or a test mode setting. Real cards are then declined, or orders appear without any money moving. Switch to live keys, disable test mode, and place a small real order to confirm.
How do I switch Stripe from test mode to live mode?
Activate your Stripe account, switch off Test mode in the dashboard, copy the live keys from Developers, API keys, and paste them into your store. Then recreate the webhook in live mode and clear caches.
Can customers place orders when the gateway is in test mode?
Often they can reach checkout, but real cards will not work. Some setups accept fake test cards and mark the order paid, so you may receive orders with no payment. Either way you earn no real revenue.
How do I turn off test mode in WooCommerce?
Go to WooCommerce, Settings, Payments, open your gateway, untick Test mode and enter the live keys. Save, then clear any caching plugin. Check that the webhook is set up for live mode too.
Is it safe to test my live checkout with a real card?
Yes, if you use your own card and a low-value product, then refund the order. Test cards like 4242 4242 4242 4242 only work in test mode, so they cannot prove live mode works.
Can FunnelGuard tell if my gateway is in test mode?
Only partly. It flags visible 'test mode' text on checkout pages, but it cannot read your keys or gateway dashboard. Check those by hand after any change.
Related issues
- CNV-206Payment gateway keys expired, all payments declinedFix guide
- CNV-207Payment declined with a valid test cardFix guide
- CNV-209Payment succeeds but order not createdFix guide
- CNV-210Order created but payment fails silentlyFix guide
- CNV-211Currency at gateway differs from storeFix guide
- CNV-216Gateway self-referral breaks attributionFix guide