- One MCP host, one
terminal_id. Storeoperational_agent_idnext to the workload key. - Finish onboarding, including the handle and an
ACTIVEgrant, before the first 402. - One
orderRef, one payment idempotency key, including retries afterX402_INTENT_EXPIREDand first-time merchant acceptance. - Sign vouchers only with
@sohopay/agent-signerand only onVOUCHER_ISSUED. Never put the borrower key in the host. - Merchants fulfill on
CONFIRMEDonly, unless they have explicitly accepted capture-then-deliver risk. - Poll about every 2 seconds. Do not add a webhook listener. There is nothing to sign.
- Read the fee from the merchant you were provisioned with. Do not hard-code 5% or assume the payout equals the billed amount.
- Keep credentials on the staging hosts in Environment setup.
Next steps
Payment flow
The sequence these habits protect.
Key management
Where each secret lives.

