Checking access…

Skip to main content
Audience: CCG Platform Engineers

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​

FlowState Path
Card β€” SaleINITIATED β†’ PROCESSING β†’ COMPLETED
Card β€” Pre-Auth + CaptureINITIATED β†’ PROCESSING β†’ AUTHORIZED β†’ CAPTURE_INITIALIZED β†’ COMPLETED
Card β€” Pre-Auth + CancelINITIATED β†’ PROCESSING β†’ AUTHORIZED β†’ CANCEL_INITIALIZED β†’ CANCELLED
Card β€” 3DSINITIATED β†’ PROCESSING β†’ AUTH_REQUIRED β†’ CONFIRMATION_INITIALIZED β†’ COMPLETED
Bank Account (ACH)INITIATED β†’ PROCESSING β†’ ACCEPTED β†’ COMPLETED
Pay-and-SaveINITIATED β†’ 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 customerINITIATED β†’ PENDING_FOR_CUSTOMER_CREATION β†’ PROCESSING β†’ COMPLETED
User-Initiated β€” customer creation failedINITIATED β†’ PENDING_FOR_CUSTOMER_CREATION β†’ FAILED
Merchant-Initiated β€” new customerINITIATED β†’ PROCESSING β†’ COMPLETED (customer created synchronously via find-or-create)
Guest PaymentINITIATED β†’ PROCESSING β†’ COMPLETED (no customer lookup)