1. Discovery
The agent probes the merchant’s UCP profile. The merchant fetches the current handler definition from Prism and returns it. Agent → Merchantxyz.fd.prism_payment is present and proceeds to checkout.
2. Checkout Session
The agent sends their cart. The merchant calls Prism to get x402 payment requirements and returns them in the session. Agent → Merchantconfig and passes it to the wallet.
3. Payment Authorization
The agent’s wallet receives theconfig as paymentRequirements. No HTTP request goes out at this step — everything happens locally inside the TEE.
4. Complete Checkout
The agent submits the signed wallet output verbatim as the credential. Agent → MerchanttransferWithAuthorization on BSC, verifies the transfer, and returns:
Testing on Testnet
Use testnet chain IDs in the Prism Console during development. The Prism Gateway URL is the same for both environments. Use the Testnet Faucet to fund the agent wallet.| Chain | Chain ID |
|---|---|
| BSC Testnet | eip155:97 |
| Arbitrum Sepolia | eip155:421614 |
| Ethereum Sepolia | eip155:11155111 |
| Base Sepolia | eip155:84532 |
Merchant Guide
Step-by-step implementation for the merchant server
Agent Guide
Step-by-step implementation for the agent platform