Checkout and x402 facilitator (arc-merchant track)¶
Merchant-side pieces stay outside the Python algopay package (see REFERENCE_LEGACY_OMNIAGENTPAY_AND_ARC_MERCHANT).
Target architecture¶
- Resource server — HTTP routes return
402 Payment Requiredwithscheme_exact_algorequirements (Algorand x402 guide). - Facilitator — Verifies
paymentGroup, optional fee payer, submits to Algorand. Use a managed facilitator for speed or self-hosted for custom policy. - Checkout — Session model:
PENDING→PAID|EXPIRED|CANCELLED; webhook on confirmation; optional React embed package alongside@algodev-studio/algopay.
Scaffold status¶
The repo includes agent pay (/api/agent/pay) and dashboard only. Add a checkout workspace package or routes when you implement merchant checkout sessions.