Agent

Connect hosted MCP using setup-staging. On VOUCHER_ISSUED, sign with @sohopay/agent-signer and return PAYMENT-SIGNATURE to the merchant. The sequence, including which failures reuse the same idempotency key, is Payment flow. Reference merchant apps in the SohoPay GitHub organization (sohopay-merchant-demo, x402-merchant-demo) show the server side on Base Sepolia. Prefer their capture code over any markdown in those repos that still says POST /settle.

Merchant

Replace paymentPayload with the envelope the agent submitted. Then poll GET /api/v1/facilitator/settle/status/by-payment/$PAYMENT_ID until CONFIRMED.

Next steps

Testing

The staging checklist.

OpenAPI

Generate a merchant client from the facilitator spec.