Payment Lifecycle
State Machine
States
| State | Description |
|---|---|
| INITIATED | Payment created, idempotency recorded |
| FRAUD_CHECK | Awaiting fraud/risk screening |
| AUTHORIZED | Fraud approved, ready for processing |
| PROCESSING | Ledger posting in progress |
| COMPLETED | Successfully completed |
| FAILED | Processing error |
| CANCELLED | Cancelled by user/system |
| REJECTED | Declined by fraud/risk |