> Markdown version of [/videos/100334-teaching-agents-to-pay-what-devs-need-to-know?t=1205](https://www.wearedevelopers.com/videos/100334-teaching-agents-to-pay-what-devs-need-to-know?t=1205). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Teaching agents to pay: what devs need to know Traditional web checkouts are dead. Discover how to build secure, agent-driven commerce flows using Shared Payment Tokens and HTTP 402 microtransactions. - **Speakers:** [Benjamin Smith](https://www.wearedevelopers.com/@benjamin-smith) - **Event:** World Congress 2026 Europe - **Published:** July 10, 2026 - **Duration:** 26:50 - **URL:** https://www.wearedevelopers.com/videos/100334-teaching-agents-to-pay-what-devs-need-to-know ## Summary Traditional web checkout flows are rapidly becoming obsolete as AI agents take over product discoverability and purchasing, shifting the developer focus from user-specific web optimization to providing agents with structured product JSON and robust APIs. Despite high adoption for initial product research, consumers rarely finalize purchases through AI due to historical infrastructure bottlenecks. However, emerging frameworks are solving this by equipping agents with a core architecture: a 'brain' (LLM deciding the next action), specialized APIs, and continuous reasoning loops. Notably, system prompts heavily dictate the entire user relationship, where changing a single paragraph determines whether an agent acts as an honest advisor or a high-pressure salesperson. To overcome the friction of custom scaling, standardizations like the Universal Commerce Protocol (UCP) act as an open-source shared language, allowing merchants to surface catalog options and endpoints via simple text manifest files. The crucial hurdle of delegating spending power securely is solved by Shared Payment Tokens (SPTs). These tokenized payment methods ensure the agent never handles raw credit card data; instead, transactions are strictly scoped by single-use guardrails, exact authorization amounts, and currency locks. As these primitives mature, the horizon of agentic commerce expands to machines buying capabilities on the fly. Harnessing the long-dormant HTTP 402 'Payment Required' status mapped to the Machine Payments Protocol (MPP), autonomous agents can perform instantaneous microtransactions—such as buying API calls for restaurant reservations or geolocation—without needing passwords or persistent user sessions. Ultimately, completing a commercial transaction is no longer the final user destination, but rather an automated, modular step within the agent's broader workflow to complete a multi-step goal. **Keywords:** agentic commerce infrastructure, AI agent architecture, structured product JSON, universal commerce protocol, UCP manifest files, shared payment tokens, stripe API integration, LLM reasoning loops, machine payments protocol, HTTP 402 payment required, API microtransactions, autonomous checkout flows, machine-to-machine payments, tokenized payment methods, AI shopping assistants ## Chapters 1. **Replacing website forms with agentic commerce** (00:05) — AI agents bypass traditional user interface checkouts by relying entirely on structured data to complete transactions. 1. **Structuring product catalog data for AI agent discovery** (01:59) — Providing agents with detailed JSON properties and explicitly stated constraints ensures accurate product recommendations. 1. **Demonstrating a conversational AI shopping experience** (04:14) — A live demonstration illustrates an agent narrowing product choices, requesting payment info, and completing a real transaction. 1. **Core architecture and reasoning loops of AI agents** (06:22) — An LLM brain interacts with commerce tools and system prompt instructions within a continuous execution loop to orchestrate actions. 1. **Controlling agent behavior via system personas** (10:25) — Configuring an honest versus a commission-driven system prompt fundamentally alters the underlying sales interactions. 1. **Standardizing agent discovery with Universal Commerce Protocol** (13:10) — Maintaining a standardized text manifest and shared open-source language solves the multi-merchant integration bottleneck. 1. **Securing delegated purchases via Shared Payment Tokens** (16:55) — Agents can transact on a customer's behalf using secure, bounded tokens that govern specific transaction limits. 1. **Funding agent capabilities using machine-to-machine microtransactions** (20:05) — Employing the Machine Payments Protocol and HTTP 402 codes allows agents to spontaneously pay for tools and APIs. 1. **Clarifying compliance for UK and EU payment regulations** (25:51) — The regional rollout for Shared Payment Tokens requires alignment with strong customer authentication and PSD2 regulations. ## Related Moments - [Integrating artificial intelligence into user agentic commerce](https://www.wearedevelopers.com/videos/1381-402-payment-required) (from "402 - Payment Required") - [Autonomous AI agents and the need for digital payments](https://www.wearedevelopers.com/videos/100063-200-ok-payment-settled-resource-delivered) (from "200 OK: Payment settled, resource delivered") - [Transitioning toward autonomous agentic commerce](https://www.wearedevelopers.com/videos/100002-the-new-financial-stack-ai-agents-and-trust) (from "The New Financial Stack: AI, Agents and Trust") - [Enabling transactions and visual interactions through specialized protocols](https://www.wearedevelopers.com/videos/2120-chatgpt-apps-from-chat-to-checkout) (from "ChatGPT Apps: From Chat to Checkout") - [Predicting future retail experiences and avoiding technology hype](https://www.wearedevelopers.com/videos/1702-intelligence-everywhere-the-future-of-consumer-tech) (from "Intelligence Everywhere: The Future of Consumer Tech") - [Handling authentication and transaction flows for autonomous agent buyers](https://www.wearedevelopers.com/videos/2120-chatgpt-apps-from-chat-to-checkout) (from "ChatGPT Apps: From Chat to Checkout") ## Related Articles - [What is Agentic Programming and Why Should Developers Care?](https://www.wearedevelopers.com/magazine/625-what-is-agentic-programming-and-why-should-developers-care) - [From Prototype to Production: Build AI Agents with This Free 4-Course Learning Path](https://www.wearedevelopers.com/magazine/655-from-prototype-to-production-build-ai-agents-with-this-free-4-course-learning-path) - [The Web We Broke (And Why AI Agents Are Paying the Price) - AgentCon Berlin](https://www.wearedevelopers.com/magazine/735-the-web-we-broke-and-why-ai-agents-are-paying-the-price-agentcon-berlin) - [The Overflow: AI and Agentic Coding](https://www.wearedevelopers.com/magazine/721-the-overflow-ai-and-agentic-coding) ## Related Jobs - [Principal Field Architect - AI Agents](https://www.wearedevelopers.com/jobs/ext/1442858-principal-field-architect-ai-agents) at **Twilio** - [Principal Product Manager, Agent Platform](https://www.wearedevelopers.com/jobs/ext/277541-principal-product-manager-agent-platform) at **GitHub** - [Twilio's next Senior Principal Field Architect - AI Agents](https://www.wearedevelopers.com/jobs/ext/1487390-twilio-s-next-senior-principal-field-architect-ai-agents) at **Twilio** - [Principal Product Manager, Enterprise Commerce Platform](https://www.wearedevelopers.com/jobs/ext/1390094-principal-product-manager-enterprise-commerce-platform) at **Twilio** - [AI Full Stack Engineer](https://www.wearedevelopers.com/jobs/ext/1354435-ai-full-stack-engineer) at **Almedia** - [Senior Backend Developer — AI: MCP & Agent Engine](https://www.wearedevelopers.com/jobs/48297-senior-backend-developer-ai-mcp-agent-engine) at **basebox GmbH**