Design card-present and online payment capture with authorization, capture, refunds, and reconciliation. Strong consistency and audit trails are mandatory.
Functional requirements
- Authorize and capture funds with idempotency
- Refund and partial refund flows
- Reconcile settlements with provider reports
- Support webhooks for async outcomes
Non-functional requirements
- Exactly-once monetary effects from the merchant’s perspective
- Low latency authorization path
- PCI DSS scope reduction via tokenization