Last Updated on Nov 19, 2026 by Nurul Afsar
You log in to your dashboard and the Orders screen looks wrong. Dozens, maybe hundreds, of Failed and Pending payment orders have appeared overnight. The totals are tiny, the customer names are gibberish, and the email addresses look like a cat walked across a keyboard. Nobody actually bought anything, yet your gateway dashboard is lighting up with declines.
This is one of the most common problems we see on WooCommerce stores, and it is almost never random. In this guide we explain what is really behind failed orders from spam bots, how to confirm the diagnosis, and how to stop it with a layered defence that does not punish real customers.
30-Minute Free Consultation + Free SEO Audit Included
Get expert ecommerce guidance from Numinix. We’ll assess your store performance and share clear, practical next steps to improve revenue—whether that means SEO, conversion rate improvements, website speed, UX, tracking, or custom web development.
No obligation—just actionable recommendations you can use right away.
What Failed Orders From Bots Actually Look Like
A normal failed order comes from a real shopper whose card was declined, who timed out, or who changed their mind. Bot-driven failures have a different fingerprint:
- Bursts, not trickles. Many orders arrive within minutes, often at odd hours.
- Tiny, repetitive totals. The same cheap product, or the same low amount, again and again.
- Nonsense customer data. Random names, throwaway or mismatched email domains, and billing details that do not add up.
- Gateway decline noise. Stripe, PayPal or your processor shows a spike in declines or blocked payments.
- No browsing history. In your analytics, these “customers” never viewed a product page or loaded the cart in a normal way.
If that sounds familiar, you are likely dealing with one of the three causes below.
The Main Causes
1. Card testing (carding)
This is the big one. Criminals buy lists of stolen card numbers and need to know which ones still work. Your checkout makes a convenient test lab: a bot adds a cheap item to the cart, submits a card, and watches whether the gateway approves or declines it. Most attempts fail, which is exactly why you see a wall of Failed orders. The bot does not care about your product. It cares about the gateway’s answer.
The quiet danger is that a few of those attempts will succeed. A single approved fraudulent payment can mean a chargeback, a fee and lost stock, which usually costs more than all the failed attempts combined.
2. Bots hitting the checkout API directly
Modern WooCommerce checkouts built on blocks talk to a public interface called the Store API, while the classic shortcode checkout posts to a different route. Sophisticated bots skip your pages entirely and call these endpoints directly, with no page view, no referer and no browser. That is why a CAPTCHA that only protects your login or registration form does nothing here. WooCommerce has also acknowledged this gap publicly: a community feature request filed in 2026 notes that the Store API checkout path has no built-in bot screening by default, and describes bots adding a cheap product and triggering order creation purely to validate stolen cards.
3. Generic spam and scraper bots
Not every failed order is carding. Some bots crawl and submit every form they find, including account registration and checkout fields, to seed spam links or harvest accounts. If you are also seeing junk user accounts, read our companion guide on how to stop WooCommerce registration spam, because the two problems often share a root cause.
Other things that mimic the problem
Before you assume the worst, rule out these genuine causes of failed orders:
- A misconfigured or expired payment gateway key
- A caching or CDN rule that is breaking the checkout session
- A plugin conflict that throws errors at the payment step
- Server timeouts under load (see our notes on WooCommerce crashes and their solutions)
A useful rule of thumb: if failed orders correlate with real, identifiable customers retrying, look for a technical fault. If they correlate with bursts of strangers, look for bots.
Step 1: Confirm It Is a Bot Attack
Take ten minutes to verify before you change settings.
- Filter your orders. Go to WooCommerce > Orders and filter by Failed and Pending payment. Look at timestamps and totals. Dozens of near-identical orders in a short window is the classic signature.
- Check your gateway dashboard. In Stripe, card testing shows up as a spike of small failed or blocked payments. In PayPal and other processors, look for a sudden rise in declines.
- Read your access logs. Ask your host for logs, or check them yourself, and search for requests to
/wp-json/wc/store/v1/checkoutand/?wc-ajax=checkout. Many unique IPs hitting these routes with no preceding page view points to automation. - Compare order sources. If the failed orders mostly come through the Store API rather than the classic checkout, that tells you which door the bots are using, and therefore where to put your defences.
If you find a handful of successful or “processing” orders in the same burst, put them on hold and review them manually before shipping anything.
Step 2: Contain the Attack Today
If the flood is happening right now, do these first and refine later.
- Turn on WooCommerce’s built-in rate limiting. Go to WooCommerce > Settings > Advanced > Features and enable rate limiting for the checkout block and Store API. It is off by default. WooCommerce documents a limit of a few checkout attempts per minute from one visitor, and excess requests receive an HTTP 429 response.
- Tell your host about your proxy setup. If your site sits behind a CDN or load balancer, WooCommerce needs to know how to read the real visitor IP. Without proxy support configured, the limiter can see every request as coming from one address, which means it may block real customers while bots slip through. Check WooCommerce’s rate limiting documentation and ask your host for the correct settings.
- Pause risky payment methods temporarily. If one gateway is being hammered, disabling it for a day or two is cheaper than the decline penalties.
- Enable your gateway’s fraud tools. Stripe Radar, PayPal’s fraud filters and similar features already know a lot about card testing. Turn the card-testing protections on and review the rules.
Step 3: Build a Layered Defence
No single tool stops every bot. Aim for several cheap layers so that most attacks die before a payment request is ever sent.
Layer 1: Edge protection (WAF and CDN)
A web application firewall such as Cloudflare can challenge or block bad traffic before it reaches WordPress. Create rules that rate limit or challenge requests to your checkout and Store API paths, and consider geo or ASN-based challenges if your attacks come from regions you do not sell to. This is the cheapest place to stop traffic because it never touches your server.
Layer 2: WooCommerce rate limiting
With rate limiting enabled, repeated rapid checkout attempts are throttled at the application layer. Developers can tune the thresholds with the woocommerce_store_api_rate_limit_options filter. For example:
add_filter( 'woocommerce_store_api_rate_limit_options', function () {
return array(
'enabled' => true,
'proxy_support' => true, // only if you are behind a trusted proxy/CDN
'limit' => 10, // requests allowed...
'seconds' => 60, // ...per this many seconds
);
} ); Treat those numbers as a starting point and confirm the current defaults and behaviour against WooCommerce’s documentation, since they can change between releases. Note that this filter applies to Store API POST requests generally, not only checkout, so test your cart and account flows after changing it.
Layer 3: A challenge on the checkout itself
A CAPTCHA or invisible challenge adds friction for scripts without bothering most people. Cloudflare Turnstile is a good privacy-friendly option, and we walk through the setup in our guide to adding Cloudflare Turnstile CAPTCHA on WordPress. If you prefer a ready-made plugin that covers login, registration, comments and checkout forms, take a look at Captcha 4WP. One important caveat: confirm that your challenge actually covers the Store API checkout route and not just the visible form, or bots calling the endpoint directly will walk straight past it.
Layer 4: Smarter handling of failed orders
Because bot orders almost always fail at the gateway, the failed-order event itself is a useful signal. Some stores flag repeated failures from the same IP or email within a short window. A word of warning from experience: do not treat every failed order as hostile. Real customers retry after a mistyped card, so a rule that is too aggressive will block genuine buyers. A safer approach is to apply stricter checks only to orders that arrive through the Store API with no prior session activity, and to leave ordinary retries on the standard checkout alone.
Layer 5: Basic hygiene
- Require a minimum order value or avoid listing extremely cheap items that bots love to target
- Disable guest checkout if your business model allows it, or require email verification before payment
- Keep WooCommerce, WordPress, your theme and your gateway plugins updated
- Limit access to the REST API where you do not need it, but test thoroughly first because blocking it entirely can break legitimate features such as the block checkout itself
Step 4: Clean Up the Junk Safely
Once the attack is contained, tidy up carefully.
- Export before deleting. Download the failed orders as a CSV so you keep a record of IPs, emails and timestamps in case you need to dispute a gateway fee or report the activity.
- Delete in batches. Use the bulk actions on the Orders screen, filtered to Failed, and move them to the trash. Very large batches can strain the server, so work in chunks.
- Restore stock if needed. Failed or pending orders can hold reserved inventory. Check that stock levels are correct afterwards.
- Watch your decline ratio. Card networks and payment providers monitor the share of declined transactions. If your attack was large, contact your gateway to explain what happened and ask whether any review is under way.
- Monitor for a week. Attackers often return, sometimes with new tactics. Keep rate limiting logs and your gateway alerts switched on.
Common Mistakes to Avoid
- Relying on a single CAPTCHA. It is one layer, not a solution.
- Forgetting the Store API. Protecting the visible form while leaving the endpoint open is the most common gap.
- Breaking real checkouts. Always test as a customer after changing any rule, on both desktop and mobile.
- Ignoring the successful orders. The failures are noisy, but the approved fraud is what costs you money.
- Setting up proxy rate limiting wrongly. Without the right IP detection, you may block everyone or no one.
When to Call in Help
If attacks keep returning, your gateway is threatening action, or you are not comfortable editing server rules and code, it is worth getting a specialist involved. A proper fix usually combines edge rules, checkout hardening and monitoring, tuned to how your store actually sells. Our team handles this kind of work every week through our WooCommerce development services, and if the attack has left your site slow or unstable, our WooCommerce speed optimization service can help you recover.
Quick Checklist
- Confirm the pattern in orders, gateway dashboard and access logs
- Hold and review any successful orders from the burst
- Enable WooCommerce rate limiting and configure proxy support
- Add edge rules with a WAF or CDN
- Add a challenge that covers the Store API checkout
- Turn on your gateway’s card-testing protections
- Export, then bulk delete junk orders
- Monitor for at least a week
Frequently Asked Questions
Why am I getting failed orders on WooCommerce from people I do not know?
Most often it is card testing: bots submit stolen card numbers through your checkout to see which ones the gateway approves. The failed orders are the declines.
Are failed orders from bots dangerous?
The failed orders themselves mainly create clutter, gateway fees and a higher decline rate. The real risk is the occasional approved fraudulent payment, which can lead to chargebacks.
Does a CAPTCHA stop WooCommerce spam orders?
It helps, but only if it protects the route the bots use. Bots that call the Store API directly can bypass a CAPTCHA that only guards the visible form, so combine it with rate limiting and edge rules.
How do I stop fake orders in WooCommerce without hurting real customers?
Use layers: WAF rules, WooCommerce rate limiting, a checkout challenge and gateway fraud tools. Test every change as a real shopper, and avoid rules that punish a normal retry after a declined card.
Is it safe to delete failed orders?
Yes, once you have exported a record and confirmed none of them are genuine. Delete in batches and check inventory afterwards.