Use this file to discover all available pages before exploring further.
Your merchant server needs to implement ACP’s commerce endpoints (discovery, checkout sessions, orders) and integrate Prism for the payment handler. Prism handles token math, chain selection, and x402 formatting.
Step 2: Include the Prism Handler in Checkout Sessions
When an agent creates a checkout session (POST /checkout_sessions), call Prism to get the x402 payment requirements for the order and include the handler in your response.
Amounts are in token base units. The tokens that appear in accepts depend on what you have enabled in your Prism Console:
Token
Decimals
Example for $19.99
USDC
6
"19990000"
FDUSD
18
"19990000000000000000"
The config must be refreshed on every session update that changes the total (e.g., after adding a shipping address or applying a discount). Re-call Prism’s payment-requirements endpoint with the updated amount and return the new config in your response.
Sessions change as the agent provides information. When the agent updates the session (PUT /checkout_sessions/{id}) with buyer info or a shipping address, recalculate your totals and re-fetch the Prism config with the updated amount.Return the updated session with:
New totals (including tax, shipping)
Updated config in the payment handler (with amounts reflecting the new total)
status: "ready_for_payment" when all required fields are present
When the agent completes checkout (POST /checkout_sessions/{id}/complete), extract paymentPayload and paymentRequirements from payment_data.instrument.credential (ignore the type fields) and forward them to Prism:
Do not call the settle endpoint more than once per checkout session. If a
complete request arrives for an already-settled session, return the previous
order without re-submitting to Prism.