Implement and review payments as high-integrity state machines with trusted amounts, provider webhooks, idempotency, retries, reconciliation, and order/payment separation.
Resources
1Install
npx skillscat add laivannha0202/opencode-agent-skill/payment-engineering Install via the SkillsCat registry.
SKILL.md
Payment Engineering
Never trust client-calculated amount or a browser redirect as proof of payment. Model payment and order state transitions explicitly and assume provider events can be duplicated, delayed, retried, or arrive out of order.
Verify server-side pricing, webhook authenticity, idempotency keys/event identity, atomic state transitions, retry behavior, refund/cancel paths, reconciliation and secret isolation.
Read workflow.md for state-machine invariants, webhook handling, idempotency, failure injection and verification.