# ChatGPT's Agents Can Now Pay. Make Your Store Agent-Ready With WebMCP, Web Bot Auth and a Risk Lane

> Source: <https://dev.to/neeraj_sharma_757fbb49aa7/chatgpts-agents-can-now-pay-make-your-store-agent-ready-with-webmcp-web-bot-auth-and-a-risk-lane-3ggh>
> Published: 2026-11-29 12:07:08+00:00

**Recommendation:** Expose store actions as feature-detected WebMCP tools with JSON schemas and verify agent requests via Web Bot Auth signatures so legitimate agent purchases pass your bot wall.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

On November 13, OpenAI launched ChatGPT Wallet. Its "dots" agents can now finish a purchase for the user: the user adds a card once, reviews the items and total, approves with Face ID or a fingerprint, and the agent pays with a network payment token instead of the real card number. It starts with ChatGPT Pro users in the US, built with American Express, Chase, Mastercard and Visa.

The interesting part for developers is not the wallet. It is the one line in OpenAI's announcement aimed at us: to accept these payments, *websites need to ensure agents are not inadvertently blocked, and payment and risk systems need to recognize legitimate purchases made by agents.*

In other words, an AI agent with a real budget can show up at your store this month, and your bot wall, your CAPTCHA and your fraud rules were all built to stop exactly that kind of visitor.

This post covers the three things you can ship this week, with code for the one most stores are missing.

The merchant keeps the customer relationship, pricing, fulfillment and returns. The payment looks like a normal card payment with a tokenized card. What changes is *who is clicking*.

ChatGPT's agents sign their HTTP requests using Web Bot Auth, an IETF draft ("HTTP Message Signatures for Bots") built on standard HTTP Message Signatures. Each request carries a signature, and the agent's public keys are published in a directory, so a CDN or firewall can check cryptographically that a request really comes from the agent it claims to be.

What to do:

This is configuration, not code, but it is the difference between an agent that can buy and an agent that gives up and recommends a competitor.

An agent can drive your site like a human, clicking and scraping. It works, but it is slow and fragile: a redesigned button breaks the flow.

OpenAI's playbook mentions a better option: WebMCP tools. WebMCP is a proposed web standard, currently in a Chrome origin trial, that lets a page register tools for agents with plain JavaScript. The agent calls a named function with a JSON schema instead of guessing which button to press.

Here is a small `agent-tools.js` for a store. It exposes search, add to cart and cart summary, and deliberately leaves checkout to your normal checkout page, where the user approves the payment.

```
// agent-tools.js: expose real store actions to in-browser AI agents (WebMCP)
// Load it on product and cart pages. Feature-detected, so it does nothing in
// browsers without WebMCP.
(async () => {
  if (!('modelContext' in document)) return;

  await document.modelContext.registerTool({
    name: 'search_products',
    description:
      'Search the store catalog. Returns up to 10 in-stock products with price in USD, ' +
      'available sizes and the product page URL.',
    inputSchema: {
      type: 'object',
      properties: {
        query: { type: 'string', description: 'What the shopper wants, e.g. "waterproof hiking boots"' },
        maxPrice: { type: 'number', description: 'Maximum price in USD' },
        size: { type: 'string', description: 'Size label, e.g. "10" or "M"' }
      },
      required: ['query']
    },
    async execute({ query, maxPrice, size }) {
      const params = new URLSearchParams({ q: query, in_stock: 'true' });
      if (maxPrice) params.set('max_price', String(maxPrice));
      if (size) params.set('size', size);
      const res = await fetch(`/api/products?${params}`, { credentials: 'same-origin' });
      if (!res.ok) throw new Error(`Search failed: ${res.status}`);
      const items = await res.json();
      return items.slice(0, 10).map(p => ({
        id: p.id,
        title: p.title,
        priceUsd: p.price,
        sizes: p.sizes,
        url: p.url
      }));
    }
  });

  await document.modelContext.registerTool({
    name: 'add_to_cart',
    description: 'Add a product variant to the shopper\'s cart. Returns the updated cart total.',
    inputSchema: {
      type: 'object',
      properties: {
        productId: { type: 'string' },
        size: { type: 'string' },
        quantity: { type: 'integer', minimum: 1, maximum: 5 }
      },
      required: ['productId', 'quantity']
    },
    async execute({ productId, size, quantity }) {
      const res = await fetch('/api/cart/items', {
        method: 'POST',
        credentials: 'same-origin',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ productId, size, quantity })
      });
      if (!res.ok) throw new Error(await res.text());
      const cart = await res.json();
      return { items: cart.items.length, totalUsd: cart.total, checkoutUrl: '/checkout' };
    }
  });

  await document.modelContext.registerTool({
    name: 'get_cart',
    description: 'Return the current cart: line items, shipping estimate and total in USD.',
    inputSchema: { type: 'object', properties: {} },
    async execute() {
      const res = await fetch('/api/cart', { credentials: 'same-origin' });
      return res.json();
    }
  });
})();
```

A few choices that matter more than the syntax:

`maximum: 5` on quantity is a cheap guard against an agent misreading "a pair" as 50.
This follows the shape of Chrome's documented imperative API (`document.modelContext.registerTool` with a name, description, input schema and an `execute` function). WebMCP is still an origin trial, so treat it as a progressive enhancement and keep the human flow working exactly as it does today.

This is the quiet one. A purchase that arrives from a headless browser, completes in 40 seconds and ships to an address the account has never used looks exactly like fraud to most rule sets. OpenAI says it is working with fraud prevention companies (Forter, Riskified, Sardine, Signifyd) and payment providers (Adyen, Checkout.com, Stripe) so their systems recognize legitimate agent purchases.

Practical steps:

Honest answer: volumes are small today. TechCrunch notes DoorDash and Uber report low numbers of agent orders, and Amazon blocks AI agents to steer people to its own assistant. But ChatGPT has 1.2 billion weekly users according to OpenAI, Meta's agent already has shopping as a top activity, and OpenAI says users will soon be able to pre-approve purchases by spending limit and category.

The cost of being ready is a CDN setting, a 100-line script and a conversation with your risk provider. The cost of not being ready is being the store the agent could not get into.

We build agent-ready product layers like this at [Axionry](https://axionry.com), an AI product development studio: WebMCP tools, agent-friendly APIs and the AI agents on top, shipped in weeks. If you want your store or SaaS ready for agent traffic, [book a call](https://axionry.com/book).
