← All recipes
✓ Live-testedStarter

Card Testing Alarm

Tags card-testing orders (small first orders with failed payments) and emails you when 3+ hit in an hour, so you refund before you ship. Never cancels or refunds for you.

What it does: Two small Shopify Flow workflows that catch the card-testing orders that reach your Orders list, before you ship them. 1. Tagger. When Shopify finishes its fraud check on an order, plain rules look at the payment attempts, the order size and whether it's a first order. If one matches, the order gets the tag card-test-suspect, and (if you add the optional step) its shipping is paused. 2. Hourly check. Every hour it counts orders tagged card-test-suspect in the last hour. If there are 3 or more, it emails you the list and a short what-to-do checklist. Quiet hours send nothing.

The rules (you can edit them; an order tagged keep is never flagged): 1. 2 or more failed payment attempts on the order. 2. A small first order (up to SMALL_MAX, default $15) with a failed payment attempt or a Cancel / Investigate fraud recommendation. 3. A small guest order. Alone it only gets a tag; several in one hour set off the email.

This is an automation, not AI. The checks are a short piece of plain JavaScript in Flow's Run code step, and you can read every rule. It never cancels or refunds anything.

Why people want this: Card-testing bots hit a store's cheapest product with stolen cards. On r/shopify one owner saw "like 300 abandon carts, All of them the same lowest value item I have. Every few minutes a new attempt" (reddit.com/r/shopify/comments/1rs2dvz). Another found "2 orders went through, refunded them immediately" (reddit.com/r/shopify/comments/1tngouk). Since June 16, 2026 Shopify no longer records abandoned checkouts for declined card tests (changelog.shopify.com/posts/reduced-bot-noise-in-abandoned-checkouts), so the clearest sign left is in your orders.

How you install it

Copy-paste build, about 15 min. There's no one-click import file for this recipe yet. You create the workflows in Shopify Flow and paste in our exact settings, rules code and email text, step by step. Built from Shopify's documented Flow steps, with the rules code unit-tested; it hasn't been run end-to-end in our own test store yet, so the 14-day 'it didn't run' refund applies.

What it does

When Shopify finishes its fraud check on an order, plain JavaScript rules in Flow's Run code step look for card-testing signs: 2+ failed payment attempts, a small first order with a failed attempt or a Cancel/Investigate recommendation, or a small guest order. Matches get the card-test-suspect tag and, if you add the optional step, a shipping hold. Every hour a second workflow counts suspects from the last hour and, at 3 or more, emails you the list with a what-to-do checklist.

Who it's for

  • Stores whose cheapest product is being hit by card-testing bots
  • Owners who found test orders that went through and had to refund them
  • Anyone who ships fast and can't check every small order

What you get

  • Exact copy-paste settings for two Shopify Flow workflows
  • Rules code for Flow's Run code step, with the test cases we ran
  • Step-by-step build checklist written for beginners
  • Hourly alert email text with a what-to-do checklist
  • Store profile worksheet to tailor it to your store
  • Test plan so you know it works
  • Safety rails: tags and optional holds only, never cancels; keep tag; quiet hours send nothing
  • 12 months of updates and a 14-day 'it didn't run' refund

Setup time and cost

Setup: ~15 min. Platform: Shopify Flow (free). Price: $29 one-time, or included in All-Access.

FAQ

Does it stop card testing?

No. Most card tests are declined at checkout and never become orders, and Flow can't see those. Shopify Payments' own card-testing protection handles that layer. This catches the test orders that reach your Orders list, so you don't ship them.

Will it cancel or refund orders?

No. It tags, optionally holds shipping, and emails you. You decide.

Has it been tested?

Yes. We ran it end-to-end in our Shopify test store on Nov 4, 2026: card-test orders were tagged, a normal order wasn't, and the hourly alert fired at 3 suspects. The exported .flow files are in your download zip, plus the copy-paste guide (about 15 minutes). Small-order rules use SMALL_MAX 15, so orders up to $15 count as small; adjust it to your prices. The 14-day 'it didn't run' refund still applies.

Is this an AI agent?

No. Recipes are Shopify Flow automations, not AI. This one runs on its own inside Shopify Flow, following rules you can see. Our live AI product is AI Support Triage (https://www.agents4ecom.ai/ai/support-triage), which sorts support email and drafts replies for you to review. It's available to US stores only: $29/mo for 300 messages, or $49/mo for 1,500.

Do I need to be technical?

No. Copy and paste each setting from the step-by-step guide.

What if it doesn't work in my store?

You're covered by a 14-day 'it didn't run' refund.

Related guides

Setup checklist (5 steps)

  1. Open the Flow app and click Create workflow. Build Workflow 1 (Tagger) from the exact settings in the build guide.
  2. Paste the rules code into the Run code step and set SMALL_MAX just above your cheapest product's price.
  3. Unlocks after purchase · copy-paste settings included
  4. Unlocks after purchase · copy-paste settings included
  5. Unlocks after purchase · copy-paste settings included

The full checklist, copy-paste settings and troubleshooting guide unlock after purchase.