Why does this happen?
Every card payment is a round trip. Your checkout hands the card to the gateway, the gateway asks the bank, and the answer has to come back to WooCommerce. A break anywhere looks the same to the customer: an error or a decline, and an order in Failed. The cause is usually on the store side, not the customer’s card.
The most common causes we find, in order:
- Test mode left on. A gateway in test or sandbox mode rejects every real card. It often happens after a developer tested the store, or after a staging copy was pushed live.
- A broken connection to the provider. API keys that were rolled or revoked, a Stripe or PayPal account that was disconnected, or a site still linked to an old account.
- Webhooks that stopped arriving. Webhooks are how the provider tells your store that a payment succeeded. A redirect from http to https or to www, a cached response or a firewall rule can block them. When that is the main fault, orders stick unpaid rather than fail; see orders stuck on pending payment.
- An account or currency problem. The provider account is not fully activated for live payments, is under review, or does not support your store currency. Some payment methods only appear for certain currencies, so a currency change can make one vanish.
- An update or script conflict. A gateway, WooCommerce or theme update, or a speed plugin that delays scripts, stops the payment form loading or sending.
Try this first
These checks are safe on a live store. None of them changes an order or a customer’s card.
- Read the failed order. Go to WooCommerce, Orders and open a recent order marked Failed. The order notes on the right usually record the gateway’s reason, such as a decline from the bank or an error from the gateway itself. Write it down word for word.
- Look at your payment dashboard. Log in to Stripe or PayPal and find the same attempt. If it is there and declined, the provider tells you why. If it never arrived, the problem is on your store. Also look for a banner asking you to verify the account or take action.
- Check the gateway mode and connection. Go to WooCommerce, Settings, Payments and open your gateway’s settings. For Stripe, make sure “Enable test mode” is unticked, then click Configure connection in Account details and check that the Live tab shows the account as connected and the webhooks as “Configured”. For PayPal, check the connection status shows your live account, not a sandbox one. If test mode is on and the live connection looks healthy, untick it, save, and place a low-value real order you can refund.
- Keep orders coming. If one gateway is down and another payment method already works, leave that one switched on and add a short notice to your checkout or homepage so customers know how to pay.
Do not disconnect and reconnect the gateway as a first move. It changes the credentials and the webhooks at the same time, which can hide the real cause. Hand it over if the order notes show an API or authentication error, if the webhooks are not “Configured”, if customers were charged without a working order, or if nothing in the steps above explains the failures.
Was the customer charged even though the order failed?
Sometimes, yes. If the bank approved the payment but your store never heard back, the money is in your Stripe or PayPal account while the order says Failed or unpaid. Check the dashboard before anyone pays again. If that is your main problem rather than declines, see orders stuck on pending payment.
Is it the payment or the whole checkout?
If shoppers never reach the payment step, the page will not load, or “Place order” just spins, the fault is in the checkout itself rather than the gateway. See WooCommerce checkout not working, or read our guide to a broken WooCommerce checkout for the longer walkthrough. If you see a sudden flood of failed payments for one cheap product, you are more likely looking at a card testing attack than a broken gateway.
Not sure which one you have? Browse every fix on the Fix WordPress page.
