payment-flow-security
Installation
SKILL.md
Payment Flow Security
Workflow
- Model payment/order states and define the authoritative system for each transition.
- Keep amount, currency, product/order identity and authorization server-controlled.
- Bind gateway attempts to a server-side order and use opaque scoped identifiers externally.
- Verify provider signatures on raw payloads and apply replay/timestamp controls.
- Make state transitions idempotent and transactional where possible.
- Treat browser redirects only as UX; confirm payment server-side.
- Test delayed, duplicated, reordered and contradictory events.
Conditional references
- State machines/invariants →
references/state-machine.md. - Webhook verification →
references/webhook-verification.md.
Asset
Use assets/payment-threat-model.md before launch or migration.