How to Prevent AI Shopping Agents Being Blocked at Checkout
The short answer
Do not lower your defenses. Separate signed agents from anonymous automation, and let the signed ones through checkout. As of November 27, 2026, the steps are:
- Verify Web Bot Auth signatures at the edge (Cloudflare, Akamai, Fastly) or in your backend.
- Allow verified agents with transaction intent past bot scores and CAPTCHAs on cart, login and checkout paths.
- Accept agentic network tokens in your existing card fields; no form change is needed.
- Keep fraud controls for everyone else: rate limits, velocity rules and 3-D Secure.
This page is the “let good agents buy” half. To decide which agents to allow, rate-limit or block in the first place, see how to control AI shopping agents on your website. To choose a payment provider, see best payment providers for agentic checkout.
Why agents fail at checkout
Checkout pages have the strictest bot defenses on most sites because card-testing and scalper bots target them. An agent buying on someone’s behalf triggers the same signals: a headless or automated browser, a cloud IP range, fast form filling, no mouse movement. The result is a CAPTCHA the agent cannot solve, a challenge page, or a silent fraud decline. Mastercard’s merchant guide frames the fix as Level 1 work: remove barriers that block legitimate agent traffic while the networks, agents and issuers handle most of the rest.
Step 1: Verify agent identity with Web Bot Auth
Web Bot Auth uses cryptographic signatures on HTTP requests (RFC 9421 HTTP Message Signatures) to prove which bot or agent sent a request. The agent signs with a private key. Its public key is published in a key directory referenced by the Signature-Agent header, and your edge or server verifies the Signature and Signature-Input headers. Both card networks build on it: Visa’s Trusted Agent Protocol asks merchants to reconstruct the signature base from the request and verify it with the agent’s public key, and Mastercard supports Web Bot Auth in Agent Pay through its partnership with Cloudflare.
You have two options:
- At the edge: Cloudflare, Akamai and Fastly verify Web Bot Auth at the network edge. On Cloudflare, signed agents became part of Verified bots on July 1, 2026, and each bot is classified by behavior, including Transact (checkout on behalf of users) and Agent (user-directed visits).
- In your backend: verify signatures in application code with the network’s sample implementation (Visa publishes one on GitHub). Mastercard’s guide advises checking both scheme-specific and generic tags so you accept the full range of legitimate agents.
Step 2: Exempt verified agents on checkout paths
Once identity is verified, change the rules that actually block purchases:
| Control | What to change for verified transacting agents |
|---|---|
| Bot-management score rules | Skip or allow when the request is a verified bot with Transact or Agent behavior |
| CAPTCHA / JS challenges | Do not serve on cart, login and checkout for verified agents |
| Rate limits | Give verified agents a separate, higher bucket rather than none |
| Headless-browser detection | Do not hard-block when a valid signature is present |
| Fraud scoring | Pass “verified agent” as a signal to your fraud tool instead of letting automation count against the order |
Keep everything unchanged for unsigned automation. That way card-testing protection stays intact.
Step 3: Accept agentic tokens without changing the form
Agents in Mastercard Agent Pay, Visa Intelligent Commerce and American Express ACE never hold raw card numbers. The agent platform requests a scoped token (single-use, merchant-specific or time-limited) from the network and types it into your normal payment fields. Mastercard’s merchant guide is explicit: tokens use the same format as standard card numbers, so your form validation and gateway work as they are, your processor handles detokenization with the network, and your PCI scope does not change. If agents fail at payment, check that your validation does not reject unfamiliar BIN ranges and that 3-D Secure step-ups can complete without a human-only interaction.
Step 4: If you build the agent
The same mechanics apply in reverse. Generate an Ed25519 signing key, publish the public key as a JWK in a key directory, and send the Web Bot Auth headers on every request. Then register the bot and its key directory with Cloudflare’s verified bots program so edge rules recognize it. For payments, join a network program and present tokens, not stored cards. An unsigned agent running a headless browser from a cloud IP will keep failing at checkout however good its browsing is.
Checklist
- Web Bot Auth verification on at the CDN or backend
- Bot and CAPTCHA rules exempt verified Transact/Agent bots on checkout paths
- Separate rate-limit bucket for verified agents
- Card validation accepts network tokens; 3-D Secure flow tested
- Unsigned automation still challenged and rate-limited
- Monitor declines and challenge rates for verified agents weekly
Last verified: November 27, 2026.