Stripe test mode charging live WooCommerce orders usually means the store looks live while the gateway is still in test, or that real cards are declined after you switch. You will check each gateway’s mode, swap in live keys, and clear the settings that stop live mode from saving.
The steps below run from the quickest check, a single checkbox, to less common causes such as webhook secrets and staging settings.
Check Which Mode Each Payment Gateway Is Really Using
WooCommerce has no global test mode. Each gateway keeps its own test or sandbox setting, so one store can take live PayPal payments while Stripe is still in test.
To see Stripe’s state, go to WooCommerce > Settings > Payments > Stripe > Manage. Open the Settings tab, find the General section, and look at the Enable test mode checkbox. If it is ticked, Stripe is in test mode.
Why the Dashboard toggle is not the plugin setting
The test/live switch at the top right of the Stripe Dashboard only changes which data you are viewing. It does not touch the plugin. A store can sit in test mode while you look at live data and see nothing.
Checking other enabled gateways
Open each enabled gateway under WooCommerce > Settings > Payments. Look for a Sandbox, Test mode or Debug option. For PayPal, this is usually a sandbox checkbox in its settings.

Switch Stripe From Test to Live Keys Without Breaking Checkout
Going live is a short change, but the order matters.
- Place a test order with a Stripe test card first, such as 4242 4242 4242 4242 with any future expiry and any CVC.
- Go to WooCommerce > Settings > Payments > Stripe > Manage > Settings.
- Untick Enable test mode.
- Paste your live publishable key (starts
pk_live_) and live secret key (startssk_live_). - Save, then place a real low-value order.
Stripe test-mode products, prices and coupons do not exist in live mode. If you use any, recreate them in the live Dashboard. Then confirm the payment appears in the Dashboard in live view and that the WooCommerce order status matches.
Fix the Setting That Reverts to Test Mode After Saving
Some store owners untick test mode, save, and find the box ticked again. A WordPress.org support thread links this to a stale test-mode Payment Method Configuration, an ID starting pmc_, being sent with a live key.
Recognising the ‘No such paymentsconfig’ log entry
Turn on debug logging (see the next section), save the settings, then open the Stripe log. If you see No such paymentsconfig, this is the likely cause.
Reconnect, untick, and re-save
- Go to WooCommerce > Settings > Payments > Stripe > Manage.
- In the same settings screen, find the account connection section and reconnect the Stripe account. The button label differs between plugin versions.
- Untick Enable test mode and save again.
Save again after reconnecting so the unticked checkbox is stored alongside the fresh connection data. If it still reverts, check that the live keys belong to the same Stripe account you reconnected, then continue to the staging and cache checks below.
Diagnose Key and Mode Mismatches From the Debug Log
Test keys used in live mode, or a key and an object from different modes, cause declines or No such payment_intent errors. The log shows which one you have.
- In the Stripe settings, tick the debug logging option (labelled Log debug messages in some versions) and save.
- Reproduce a checkout.
- Open WooCommerce > Status > Logs and select the
woocommerce-gateway-stripelog.
Reading the error and the object ID
Copy the object ID from the failing entry, such as a pi_ or pmc_ value. Search for it in the Stripe Dashboard, once in test view and once in live view. If it only exists in the other mode, you have a mismatch.
Re-registering the live webhook and signing secret
Test and live webhook endpoints are separate. In the live Dashboard, go to Developers > Webhooks and add an endpoint with the URL shown in the plugin’s webhook settings. Copy its signing secret (starts whsec_) into the plugin’s live webhook secret field.
Check Staging Flags, SSL and Cached Settings When Live Mode Will Not Hold
If the keys are right and live mode still will not stay on, look at the environment. A site cloned from staging can keep a staging setting, and that can change how plugins and the host treat the site.
- Open
wp-config.phpand look forWP_ENVIRONMENT_TYPE. If it is set tostagingon the live site, change it toproduction. - Ask your host whether the clone tool left any staging setting on the site.
- Load the checkout over HTTPS and confirm there is no certificate warning. Stripe live mode needs working SSL.
- Clear page and object caches, then re-save the Stripe settings.
If the box still reverts, copy the site to staging, disable plugins one by one, and re-test there before touching the live store.

Confirm Live Charging Works and Keep It Stable
Run through this checklist after any change.
- Place a small real order.
- Confirm the charge appears in the live Stripe Dashboard.
- Confirm the WooCommerce order moves to the status you expect.
- Check the live Dashboard shows webhook events delivered.
- Read the debug log for errors.
Keep your test keys stored somewhere safe for staging work. Turn debug logging off again once everything is stable, because the logs can grow quickly. To catch a repeat, add this to your child theme’s functions.php or a code snippets plugin, and try it on staging first:
add_action( 'admin_notices', function () {
if ( ! current_user_can( 'manage_woocommerce' ) ) {
return;
}
if ( 'production' !== wp_get_environment_type() ) {
return;
}
$settings = get_option( 'woocommerce_stripe_settings', array() );
if ( isset( $settings['testmode'] ) && 'yes' === $settings['testmode'] ) {
echo



