When your agent finds an ACP 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 full flow: discover, browse, checkout, sign, and complete.
Prerequisites
- An x402-capable wallet funded on a supported chain
- An ACP client that can call merchant REST endpoints
Payment Flow
Step 1: Discover the Merchant
Discovery does not include payment handlers. The agent won’t know if the merchant accepts
xyz.fd.prism_payment until the checkout session is created.Step 2: Browse the Product Feed
Fetch the merchant’s product feed (GET /product_feed) to find items. Each product has variants with IDs you’ll use at checkout.
Step 3: Create a Checkout Session
capabilities.payment.handlers. Look for a handler with name: "xyz.fd.prism_payment".
If status is "collecting_information", check required_fields for what’s missing and update the session.
Step 4: Update the Session
Provide the required fields:config in the payment handler. Continue until status is "ready_for_payment".
Step 5: Authorize with Your Wallet
Extract theconfig object from the Prism handler in the session response. Pass it directly to your x402-capable wallet as the input:
accepts, signs an ERC-3009 authorization, and returns the complete signed payment object. The private key never leaves the wallet.
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.
Step 6: Complete the Checkout
Submit the wallet output as the credential. Set bothinstrument.type and credential.type to "default" (required by the ACP schema for this handler). The wallet output is spread into the credential object.
No
authentication_required response occurs with this handler. The x402 cryptographic signature serves as authentication. If the signature is invalid or the balance insufficient, the merchant returns a payment failure directly.Step 7: Track the Order
Use thepermalink_url or order endpoints to track fulfillment.
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