sohopay-spend
HTTP 402 → sohopay-x402 (prepare_x402_payment). This skill is the non-x402 / V1 multi-step path and first-time merchant rules.
Global failure rule: If any fetch fails (non-2xx status, HTML content, or empty body), STOP. Do not improvise. Report the exact failed URL to the operator.
idempotency_key on writes — {SKILL:sohopay-idempotency}. Default operate: {SKILL:sohopay-human-direct}.
First — orient: establish context with {SKILL:sohopay-bootstrap} (v8+: get_context → borrower_id, credit, authorization, next step; v7: whoami + get_borrower_status).
V1 / non-x402: create_spend_intent → evaluate_spend_policy → sign_transaction(policy_decision_id, payload: {}) → get_signing_status (signature = intentSig) → x402 settle → poll settlement_id.
Merchant XOR merchant/merchant_id. Amount XOR amount/amount_decimal. sign_transaction does not accept spend_intent_id. Signing: references/signing.md.
First-time merchant: references/first-time-merchant.md. On a payRequest treat as accepted. Settle uses bytes32 merchantId — signing ALLOW can still DENY at settle.
STOP — ask the operator and wait for their reply. Do not proceed, skip, or simulate this step. Never fabricate keys, tokens, or signatures.
Only when there is no payRequest and policy is first-time / high-risk.
Settlement: references/settlement.md. Poll settlement_id; credit after CONFIRMED (l2_confirmations, ~5s).