Get Stripe working again on WooCommerce by checking the live and test keys, the webhooks, the events, the authentication, the errors and compatibility. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

How do I recognise a failing Stripe payment on WooCommerce?
The WooCommerce checkout depends on the browser, the cache, the session, the plugins, the calls to the gateway, the webhooks and the scheduled tasks. The diagnosis has to follow an order from end to end without making any irreversible change to the live shop. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.
Place a complete order with a customer account and as a guest, on desktop and on mobile. Note the message shown, the step where the journey stops and the exact time: that is what lets you find the event in the logs.
A card declined with no clear reason
A payment pending or incomplete
The order not updated after payment
One signal alone does not prove the cause: “A card declined with no clear reason” can come from “Test and live keys mixed up” just as easily as from “A missing webhook, an invalid secret or a failed event”. Look for at least two findings that agree before you apply a lasting fix.
Read the Stripe dashboard before changing the site
For each attempt, the Stripe dashboard shows whether the payment was created, declined by the bank, blocked by Radar, or cut short during 3-D Secure authentication. A bank decline is not the site's doing; no attempt at all, on the other hand, means the failure happens before Stripe is called, on the WooCommerce side.
Under Developers > Webhooks, check the endpoint URL, the events sent and the responses received. Repeated 4xx or 5xx responses mean your site is not getting the confirmations: the orders then sit pending even though the customer has paid.
Keys, test mode and strong authentication
The publishable and secret keys have to belong to the same mode — test or live — and the same account as the webhook secret. Test keys left on a live site, a common leftover after sign-off, cause API authentication errors.
Since strong customer authentication (PSD2) came in across Europe, the payment journey has to be able to show the 3-D Secure window. An optimisation script that defers or combines Stripe's JavaScript files can stop it opening: exclude those scripts from your minification and deferred-loading tools.
Causes to check
For a failing Stripe payment on WooCommerce, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.
Test and live keys mixed up
A missing webhook, an invalid secret or a failed event
Strong authentication not completed
An incompatible Stripe or WooCommerce version
The WooCommerce logs (Status > Logs), the scheduled actions, the webhook history and the payment provider's dashboard show whether the request left the shop, whether it was declined, or whether the confirmation never came back.
A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
Precautions before starting
Back the files and the database up, then export the list of orders and payments for the period in question, without copying any card data.
If the shop is still selling, keep the testing short and avoid replacing the database while orders are coming in: a restore would wipe the recent sales.
Which cause best matches your situation?
Pick the situation closest to what you are seeing to get the first recommended action.
Want a human opinion on your exact situation?
Get a recommendationDiagnosis and fix
| Phase | Objective | A mistake to avoid |
|---|---|---|
| Observe | Reproduce it and gather the evidence | Changing several settings before you have a baseline |
| Isolate | Confirm the component or the rule responsible | Deleting files without keeping a copy |
| Fix | Apply the smallest documented change | Restoring a version that still contains the same cause |
| Validate | Test the whole journey and monitor it | Concluding from the home page loading alone |
How do I resolve the problem?
The 4 steps below tackle a failing Stripe payment on WooCommerce from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.
- 01
Step 1
Note the PaymentIntent ID and the Stripe error code.
- 02
Step 2
Check the mode, the publishable and secret keys, and the webhook secret.
- 03
Step 3
Read the attempts and events in Stripe, then the WooCommerce logs.
- 04
Step 4
Test with the official plugin up to date and the checkout optimisations off.
If a step changes the database or the code directly, do it on a copy first. Once the fix is in place, the first check is still this: confirm the succeeded statuses and the paid order.
Validate the resolution
Validate the whole journey: adding to the basket, choosing shipping, payment, the order being created, stock updating, and the emails arriving for both the customer and the shop. Finally, reconcile the orders against the payments taken during the incident.
Validation checks
Watch the pending orders and the webhooks for a few days, above all at the busiest hours.
Prevent a recurrence
Prevention has to answer the cause you identified. For a failing Stripe payment on WooCommerce, the first measure is “Monitor the Stripe events”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.
Monitor the Stripe events
Keep test and live apart
Never expose the secret keys
Test after every update
Place a real order after every update to WooCommerce, the theme or a payment gateway, and keep an alert on orders left awaiting payment.
Frequently asked questions about a failing Stripe payment on WooCommerce
How do you tell whether the decline came from the bank or the site?
The Stripe dashboard shows whether the attempt was created and then declined by the bank, blocked by Radar, or cut short during 3-D Secure. If there is no attempt at all, the failure happens on the site's side.
Why are the Stripe keys rejected?
The publishable and secret keys have to belong to the same account and the same mode, test or live. A test key left in production after sign-off is a common cause.
The 3-D Secure window will not open, what should you check?
Stripe's scripts may be deferred, combined or minified by an optimisation plugin. Exclude them from that processing and test the checkout page again.
How do you check the fix will hold?
Confirm the succeeded status and that the order is marked paid. Test 3-D Secure authentication and a deliberate failure. Check refunds and delayed webhooks. Then watch the logs, the alerts and the relevant metrics for several days.
How to resolve it
If a failing Stripe payment on WooCommerce persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.
Get a diagnosisSummary with an AI
Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

































🍪