Testing platform for AI agent payment protocols (AP2, x402, ACP, UCP)
AgentPayment-Sandbox is an early-stage Python project in the AI payments / x402 ecosystem, focused on acp, ap2, sandbox, ucp. It currently has 1 GitHub stars and 0 forks, and sits alongside related tools like agentic-commerce-skills-plugins, awesome-agentic-commerce, ledgerflow, agorio, awesome-agent-payments-protocol, x402-demo-arbitrum.
Postman + Chaos Monkey + Case Manager for Agent Payments
A testing and development platform for AI agent payment protocols. Test your payment integrations locally before deploying to production.
We are witnessing a fundamental shift in how commerce happens on the internet.
┌─────────────────────────────────────────────────────────────────────────────┐
│ THE OLD WORLD (Human Commerce) │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ Human → Browser → Click "Buy" → Enter Card → CAPTCHA → Confirm → Done │
│ │
│ • Designed for eyeballs and fingers │
│ • CAPTCHAs actively block automation │
│ • Payment forms require human interaction │
│ • No standard API for "agent wants to buy this" │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
↓ PARADIGM SHIFT ↓
┌─────────────────────────────────────────────────────────────────────────────┐
│ THE NEW WORLD (Agentic Commerce) │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ Agent → API Discovery → Structured Checkout → Cryptographic Auth → Done │
│ │
│ • Designed for autonomous software agents │
│ • Machine-readable protocols (JSON-RPC, REST) │
│ • Cryptographic signatures replace passwords │
│ • Mandates and limits replace CAPTCHAs │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
The question is no longer IF agents will transact, but HOW.
Four major protocols have emerged:
Each solves a piece of the puzzle. APS helps you test all of them.
Fascinated by the intersection of AI agents and financial infrastructure, I saw a critical gap emerging:
"How do developers test agent payment flows without spending real money or building mock servers from scratch?"
When building AI agents that shop, pay, and transact, you face these challenges:
| Challenge | Traditional Solution | APS Solution |
|---|---|---|
| Testing payments | Use real money or test accounts | Mock servers, free and instant |
| Protocol compliance | Read specs, hope you got it right | Inspector validates automatically |
| Multiple protocols | Learn and implement each one | Unified testing for all 4 |
| Security validation | Manual code review | Automated signature verification |
| Edge cases | Hard to reproduce | Controllable mock responses |
APS is the "Postman for agent commerce" - a sandbox where you can:
APS is a sandbox testing tool for AI agent commerce protocols. It provides:
| Component | Purpose |
|---|---|
| Mock Servers | Simulate merchant/payment backends without real infrastructure |
| Playground UI | Interactive protocol explorer with live request/response |
| Inspector | Validate external implementations against protocol specs |
| Security Analyzer | Signature verification and security scoring |
sequenceDiagram
participant Agent
participant APS Mock
Agent->>APS Mock: GET /.well-known/ucp
APS Mock-->>Agent: Discovery Profile
Agent->>APS Mock: POST /checkout-sessions
APS Mock-->>Agent: Session Created
Agent->>APS Mock: POST /complete
APS Mock-->>Agent: ✅ Order Confirmed
sequenceDiagram
participant Client
participant APS Mock
Client->>APS Mock: GET /resource
APS Mock-->>Client: 402 + PaymentRequired
Note over Client: Build & Sign Payload
Client->>APS Mock: GET /resource + X-PAYMENT
APS Mock-->>Client: ✅ Resource Content
sequenceDiagram
participant User
participant Shopping Agent
participant APS Mock
User->>Shopping Agent: "Buy laptop"
Shopping Agent->>APS Mock: ap2/browseProducts
APS Mock-->>Shopping Agent: Products
Shopping Agent->>APS Mock: ap2/createCart
APS Mock-->>Shopping Agent: CartMandate
User->>Shopping Agent: Approve + OTP
Shopping Agent->>APS Mock: ap2/submitOtp
APS Mock-->>Shopping Agent: ✅ Receipt
| Protocol | Maintainer | Mock Server | Inspector | Tests |
|---|---|---|---|---|
| AP2 | ✅ /mock/ap2 |
✅ | 2 | |
| x402 | Coinbase | ✅ /mock/x402 (v2) |
✅ | 5 |
| ACP | Shopify | ✅ /mock/acp |
✅ | 5 |
| UCP | Stripe | ✅ /mock/ucp |
✅ | 5 |
flowchart TB
subgraph Frontend["Frontend (React + TypeScript)"]
Playground["Playground UI"]
Dashboard["Dashboard"]
end
subgraph Backend["Backend (FastAPI + Python)"]
subgraph Mocks["Mock Servers"]
UCP["/mock/ucp"]
ACP["/mock/acp"]
X402["/mock/x402"]
AP2["/mock/ap2"]
end
subgraph API["API Layer"]
Inspector["/api/inspector"]
Security["/api/security"]
end
end
Frontend --> Backend
Inspector --> External["Your Server"]
| Layer | Technologies |
|---|---|
| Frontend | React, TypeScript, Vite, TailwindCSS |
| Backend | Python 3.11+, FastAPI, Pydantic |
| Validation | JSON Schema, Pydantic validators |
| Protocols | x402 v2, ACP OpenAPI, AP2 A2A |
cd backend
uv sync # or: pip install -e .
uvicorn app.main:app --port 8080
cd frontend
npm install
npm run dev
# UCP Discovery
curl http://localhost:8080/mock/ucp/.well-known/ucp
# x402 PaymentRequired
curl http://localhost:8080/mock/x402/resource/premium-content
# Security Analysis
curl -X POST http://localhost:8080/api/security/analyze/x402 \
-H "Content-Type: application/json" \
-d '{"payload": {...}, "requirements": {...}}'
This is a portfolio project/prototype. It is designed for testing and development purposes. The mock servers simulate protocol behavior but do not perform real payment processing or cryptographic verification.
Sivasubramanian Ramanathan Product Owner | Fintech, Payments & Digital Innovation Ex-BIS Innovation Hub Singapore
I specialize in taking complex, real-world problems and structuring them into reliable products. My background spans product delivery, user research, and cross-agency collaboration.
Open for roles in Product Management, Fintech, Payments, RegTech, and Digital Assets.
AgentPayment Sandbox (APS) - Testing platform for AI agent payment protocols (AP2, x402, ACP, UCP).
Built with ❤️ for the agentic commerce ecosystem.
Skills & plugins for agentic commerce : UCP, ACP, AP2, A2A, WebMCP, Magento 2, BigCommerce, WooCommerce
A curated list of awesome Agentic commerce, Universal Commerce Protocol (UCP), Agentic payments protocol (AP2) resources, tools, and implementations.
A chain-agnostic AI-native payment infrastructure, authz layer for x402
The open-source toolkit for building AI commerce agents using UCP and ACP protocols
🚀 Curated resources for Google's Agent Payments Protocol (AP2), A2A & x402 — blogs, videos, repos & specs. Contributions welcome!
No description.
The self-improving LLM router that optimize your agentic workflows with every runs, works with any harnesses, any models, any loops.
A curated list of awesome agentic commerce resources — protocols, MCP servers, tools, apps, APIs and services for AI agents that shop, sell and transact. For store owners, developers, agencies and marketers.
Agentic commerce is the shift from people clicking buy buttons to AI agents acting, deciding, negotiating, and transacting on behalf of users. This repository documents that shift.
A neutral landscape analysis of AI agent payment protocols (x402, MPP, L402, Google AP2, Visa TAP + ICC, Mastercard Agent Pay, Amex ACE, Google/Shopify UCP, OpenAI ACP, and others). Maintained by Genesis Software Group, Copenhagen. Updated April 2026. CC BY 4.0.
A curated list of protocols and standards for AI agents — MCP, A2A, ACP, AG-UI, AP2, x402, and 50+ more, organized by stack layer
An interactive educational platform for understanding AI agents