Payment Lifecycle States
Platform engineers implementing or debugging any payment flow need this state model first β every other payments page (single, split-tender, pre-auth, cancel) builds on these transitions. For the exact state/transition/eligibility tables, see Payment Lifecycle β State Reference. See Payment Domain Model for how these states map onto the underlying entities.
Overviewβ
Every payment in the v2 system follows a state machine. Understanding which states are transient, which are terminal, and what triggers each transition is fundamental to working on payment code.
Complete State Machineβ
Standard Flow Patternsβ
| Flow | State Path |
|---|---|
| Card β Sale | INITIATED β PROCESSING β COMPLETED |
| Card β Pre-Auth + Capture | INITIATED β PROCESSING β AUTHORIZED β CAPTURE_INITIALIZED β COMPLETED |
| Card β Pre-Auth + Cancel | INITIATED β PROCESSING β AUTHORIZED β CANCEL_INITIALIZED β CANCELLED |
| Card β 3DS | INITIATED β PROCESSING β AUTH_REQUIRED β CONFIRMATION_INITIALIZED β COMPLETED |
| Bank Account (ACH) | INITIATED β PROCESSING β ACCEPTED β COMPLETED |
| Pay-and-Save | INITIATED β PROCESSING β PROCESSING_DEDUP_CHECK β PROCESSING β COMPLETED |
| Split-Tender (both succeed) | INITIATED β PROCESSING β COMPLETED (both allocations) |
| Split-Tender (one fails) | INITIATED β PROCESSING β allocation[0]=COMPLETED, allocation[1]=FAILED β rollback β allocation[0]=ROLLED_BACK β payment=FAILED |
| User-Initiated β new customer | INITIATED β PENDING_FOR_CUSTOMER_CREATION β PROCESSING β COMPLETED |
| User-Initiated β customer creation failed | INITIATED β PENDING_FOR_CUSTOMER_CREATION β FAILED |
| Merchant-Initiated β new customer | INITIATED β PROCESSING β COMPLETED (customer created synchronously via find-or-create) |
| Guest Payment | INITIATED β PROCESSING β COMPLETED (no customer lookup) |
Related Documentationβ
- Payment Lifecycle β State Reference β state/allocation tables and eligibility rules
- Single Payment Flow
- Split-Tender Payment
- Pre-Auth & Capture
- Customer Creation During Payment
- Payment Domain Model