Card testing attack on your checkout? How to spot it and stop it
28 November 2026 · 5 min read
You open your orders list and see dozens or hundreds of failed orders you did not expect, often for one cheap product, often in the middle of the night. Or your payment provider emails you about an unusual number of declined payments. This is very likely a card testing attack.
It is not aimed at your products. Someone has a list of stolen card numbers and is using your checkout to find out which ones still work. The cards that pass get used or sold elsewhere. Your store pays the price in fees, disputes and a payment account that suddenly looks risky.
This guide covers how to confirm it in about 10 minutes, how to stop it, and when to get help.
Signs your checkout is being used for card testing
- A sudden jump in failed or declined orders, far above your normal level.
- Many orders for the same low priced item, or very small amounts.
- Orders from guest checkout with names, emails and addresses that look random or do not match each other.
- Different card numbers tried again and again from what looks like the same visitor.
- Bursts at odd hours, often many attempts a minute.
- A warning, a hold or extra checks from your payment provider.
WooCommerce's own documentation describes the same pattern, with a large increase in orders marked Failed as one common sign.
Confirm it in 10 minutes
- In your store admin, filter orders by Failed and sort by date. A tight cluster of failures that started at a clear moment is the signature.
- Open a few of them. Look at the billing names, emails and amounts. Random looking details and the same cheap product are typical.
- Open your payment provider's dashboard and look at declines over the last day. Compare them with a normal day.
- If your store sits behind Cloudflare, open the security analytics or events for your zone and look at requests to your checkout. A flood of requests from a handful of IP addresses or networks confirms automation.
- Note when it started and roughly how many attempts there were. Your payment provider may ask.
Stop it today
Tell your payment provider. They see card testing across many stores and can often add protection on their side. They also need to know you are dealing with it, because a run of declines can put your account under review.
Put a challenge on checkout. A CAPTCHA or a check such as Cloudflare Turnstile on the checkout step makes automated attempts much harder while letting real customers through. WooCommerce's developers describe CAPTCHA and rate limiting as two effective ways to slow these attacks, and are honest that neither stops them completely on its own, which is why the steps below work together. The challenge belongs on the checkout page itself. On the payment calls your checkout makes in the background the check cannot be shown, so the call fails.
Limit how fast anyone can try. Rate limiting caps how many checkout attempts one visitor can make in a short time. Real customers rarely try more than a few times. A script tries hundreds.
Do it at the edge where you can. If your site is on Cloudflare, rules there stop the requests before they reach your server, so your store stays fast while the attack runs. Put the challenge on the checkout page a visitor actually loads. A challenge on the background payment and checkout calls fails unless the site uses Cloudflare Turnstile to clear the visitor on the page first, which Cloudflare calls clearance. Without that, the check cannot be shown, so the call fails. The simple, safe setup is a challenge on the page a visitor loads plus rate limits on the background calls, which is what WooCommerce's developers recommend for its checkout API. Done this way, it is often the quickest way to take the pressure off.
Cover the routes scripts actually use. Attackers often skip your checkout page and call the store's checkout API directly. WooCommerce has documented attacks on its Store API even on stores that do not use the checkout block. Protection that only sits on the visible checkout page can miss them.
Think about guest checkout. Requiring an account, or adding friction for guest orders during an attack, removes the easiest path. It also costs some real sales, so treat it as a temporary measure.
What not to do
Do not put a challenge on your payment or checkout API calls unless the visitor has already been cleared on the checkout page. Those requests run in the background, the check cannot be shown, so the call fails. Rate limits are the safer tool there.
Do not try to block every country or every unknown visitor. You will lose real customers, and attackers simply move to another network. The aim is to make testing cards on your store slow and expensive, so they move on. WooCommerce's own guidance notes that attackers usually do.
Do not try to contact the cardholders yourself. Failed attempts took no money. For any small test charges that did go through, follow your payment provider's instructions on refunds and disputes.
When to get help
You can often stop a small attack with a CAPTCHA and your provider's help. Get help when any of these are true.
- The attack keeps going after you added a CAPTCHA.
- Your payment provider has put your account on hold or warned you.
- Your store is slowing down or going offline under the load.
- You are not sure which checkout routes are being hit.
- It keeps coming back every few weeks.
Keeping bot and card testing protection tuned on Cloudflare is part of my Security and Care Plan. If it is happening right now, tell me what you are seeing and I will tell you honestly what I would do first.