Experience the actual use of ZeroPay and see x402 and EIP-8004 at the same time
playground is an early-stage HTML project in the AI payments / x402 ecosystem, focused on 8004, payment, x402. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like x402-erc8004-agent, x402-erc8004-agent, x402-erc8004-agent, daydreams, ProwlFi, lucid-agents.
A modern, developer-focused frontend interface for the ZPayNow crypto payment gateway supporting x402 and 8004 protocols.
The project is deployed using Cloudflare Workers. For local development:
# Install dependencies
npm install
# Start local development server
npx wrangler dev
# Visit http://localhost:8787
# Deploy to Cloudflare Workers
npx wrangler deploy
Edit wrangler.toml to configure your deployment:
name = "zpaynow-playground-server"
main = "index.js"
compatibility_date = "2024-03-20"
[vars]
APIKEY = "your-apikey"
SERVICE = "https://api.zpaynow.com"
Environment Variables:
APIKEY: Your ZPayNow API key for authenticating with the payment serviceSERVICE: ZPayNow API service endpoint (default: https://api.zpaynow.com)UI Components:
Backend Integration:
/playground
├── index.js # Cloudflare Worker (API proxy + static file serving)
├── wrangler.toml # Cloudflare Workers configuration
├── package.json # Dependencies
├── payment.html # Payment UI (default route)
├── x402.html # x402 Protocol playground
├── 8004.html # 8004 Protocol playground
├── DESIGN.md # Complete design system documentation
└── README.md # This file
Toggle between light and dark themes using the sun/moon icon in the top-right corner.
Light Theme: Clean, professional, high-contrast Dark Theme: Developer-friendly, reduced eye strain
All customization can be done directly in index.html:
tailwind.config in the <script> tagSee DESIGN.md for complete design system documentation including:
The Cloudflare Worker serves as both a static file server and an API proxy:
Payment Session Management:
POST /products - Create a payment session for a productGET /sessions/:id - Fetch payment session statusPOST /webhook - Handle payment webhooksx402 Protocol:
POST /x402/requirements - Get payment requirementsPOST /x402/payments - Submit paymentUI Routes:
/ - Payment interface (payment.html)/x402 - x402 Protocol playground (x402.html)/8004 - 8004 Protocol playground (8004.html)All API endpoints include CORS headers for cross-origin requests.
The frontend uses CDN-based TailwindCSS and requires no build process. The Cloudflare Worker is deployed as-is with Wrangler CLI.
Version: 2.0.0 Phase: Backend Integration (Complete) Backend: Cloudflare Worker with ZPayNow API proxy Deployment: Production-ready on Cloudflare Workers
Note: The application is now fully integrated with the ZPayNow API for payment processing. The Cloudflare Worker handles API routing, CORS, and static file serving.
For questions or feedback, please refer to the design documentation in DESIGN.md.
AI agent stack that combines A2A messaging + x402 micropayments + ERC‑8004 identity(trustless agent).
AI agent stack that combines A2A messaging + x402 micropayments + ERC‑8004 identity(trustless agent).
AI agent stack that combines A2A messaging + x402 micropayments + ERC‑8004 identity(trustless agent).
Daydreams is a set of tools for building agents for commerce
The world's first privacy layer for AI agents on Solana — stealth addresses + x402 payments. Every payment lands at a fresh, unlinkable address.
Lucid Agents Commerce SDK. Bootstrap AI agents in 60 seconds that can pay, sell, and participate in agentic commerce supply chains. Our protocol agnostic SDK provides CLI-generated templates and drop-in adapters for Hono, Express, Next.js, and TanStack, giving you instant access to crypto/fiat payment rails (AP2, A2A, x402, ERC8004).
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A payments protocol for the internet. Built on HTTP.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.