Bots are pushing stolen card numbers through your checkout in small test payments, which fills your store with failed orders and can get your payment account flagged. This guide shows how to stop credit card testing attacks WooCommerce stores suffer: pause payments, add limits, add CAPTCHA, tighten API access, and then monitor.
Work through the steps in order. Each one reduces the attack surface before you re-open checkout.
Pause Payments and Confirm the Attack
Signs of a card testing attack
Check three places: your WooCommerce > Orders list for a sudden run of failed orders, your gateway dashboard for many small declined attempts, and orders showing an “Unknown origin” source. One of these alone can be innocent, but two or three together point to card testing.
Emergency gateway shutdown
Go to WooCommerce > Settings > Payments and switch off the gateway being hit while the attack runs. If you cannot tell which one it is, switch off all of them. This stops sales too, so keep the pause short and use it only to buy time for the next steps.
If failed orders are still low, you may not need a full shutdown. Disable only the targeted gateway, for example Stripe, and leave a second method such as PayPal on so genuine customers can still pay.

Turn On Anti-Fraud Limits Before You Re-Open Checkout
Card testing protection settings
If you use a fraud extension such as WooCommerce Anti-Fraud, look in its settings for card testing options. Exact labels differ between versions, so check yours. You want two controls in place:
- Cap how many times a visitor can add a payment method under My Account > Payment methods. Bots often abuse this page because it needs no cart and no product.
- Cap failed payment attempts per order, so one order cannot absorb endless declined cards. Three is a reasonable starting value for most stores.
Do not lower your general risk thresholds because of an attack. Start with Checkout CAPTCHA and attempt limits instead.
Avoiding duplicate fraud checks
Before adding more, look at what your gateway already offers. Stripe, for example, has Radar rules in its dashboard. Stacking identical checks in two places makes it harder to see which one blocked a real customer.
The Store API’s built-in rate limiting slows attacks, but it does not fully prevent them, so treat it as one layer.

Add CAPTCHA and Attempt Limits Without Hurting Real Buyers
Choosing a reCAPTCHA extension
Pick a CAPTCHA extension that explicitly lists support for both classic and block-based checkout, and for your WooCommerce version. The minimum versions below come from the extension listings, so confirm them on the plugin page before installing:
| Extension | Minimum version |
|---|---|
| Google reCaptcha by Koala Apps | 1.4.1 or newer |
| reCaptcha by I13 solutions | 2.57 or newer |
Setting attempt limits per IP
One guide suggests 5 attempts per 60-minute window, with a 12-hour block for suspicious IPs. Treat that as a starting point and adjust it to your real traffic.
Measuring the effect on conversion
CAPTCHA can be bypassed, so it is one layer and not the fix. Placement and styling differ between classic and block-based checkout, so test both. Compare completed orders before and after, and place a test order on each checkout type.

Restrict the REST API and Validate AJAX Checkout Requests
Blocking unauthenticated API calls
Some attacks skip the checkout form and call endpoints directly, so a CAPTCHA on the page never runs. Restricting unauthenticated REST API access and checking AJAX checkout requests closes that route. First confirm the standard routes need authentication:
curl -i https://example.com/wp-json/wc/v3/orders
This should return a 401 error. Be careful with the Store API at /wp-json/wc/store/v1/, because block checkout relies on it. Over-restricting it will break real purchases.
Checking AJAX checkout requests
Search your server access logs for repeated POST requests to /?wc-ajax=checkout and /wp-json/wc/store/v1/checkout from the same IPs. If you add custom code to validate these requests, verify the exact filter and hook names in the current WooCommerce developer documentation first. Test on staging before deploying.
Clean Up Failed Orders and Document the Evidence
Keeping controls on during cleanup
Deleting failed orders alone does not stop an attack, so leave CAPTCHA, attempt limits and any gateway restrictions switched on while you tidy up. Save your evidence first, because trashed orders are harder to explain to a payment processor later.
- Go to WooCommerce > Status > Logs and download the gateway log files covering the attack window.
- In your Stripe or PayPal dashboard, export the failed and declined payments for the same period.
- Record the pattern: time range, number of attempts, IP addresses, and any orders labelled “Unknown origin”.
- Go to WooCommerce > Orders, filter by Failed, and tick the select-all box.
- Choose Bulk



