When your agent finds a UCP merchant that supportsDocumentation Index
Fetch the complete documentation index at: https://developers.fd.xyz/llms.txt
Use this file to discover all available pages before exploring further.
xyz.fd.prism_payment, it can pay with any x402-capable wallet. This page covers the four steps: discover, checkout, sign, and complete.
Prerequisites
- An x402-capable wallet funded on a supported chain
- A UCP profile your agent can reference (e.g.,
https://platform.example/ucp/profile)
Advertise the Handler in Your Profile
Includexyz.fd.prism_payment in your platform’s payment_handlers registry with spec and schema. No config is needed. This tells the merchant your platform can fulfill this payment method.
Payment Flow
Step 1: Discover the Handler
xyz.fd.prism_payment appears in payment_handlers. If present, the merchant accepts Prism payments and the flow can proceed.
Step 2: Create a Checkout Session
payment_handlers["xyz.fd.prism_payment"][0].config — the x402 payment requirements populated by Prism. Extract this object; it is the direct input for wallet authorization.
Step 3: Authorize with Your Wallet
Pass theconfig object to your x402-capable wallet as paymentRequirements. The wallet selects a network from accepts, signs an ERC-3009 authorization inside the secure enclave, and returns the complete signed payment object.
The Finance District Agent Wallet handles this via its x402 authorization tool. Pass the config directly and it returns the signed object ready for submission — no additional formatting required.
Step 4: Complete the Checkout
Submit the wallet output as the credential. Bothinstrument.type and credential.type must be "default" — they are required UCP schema discriminators for this handler.
Commerce Payments
How Agent Wallet handles the payment signing
Agent Wallet MCP Server
Connect your agent to the Finance District wallet via MCP
End-to-End Flow
See the full purchase cycle with both sides visible