Understanding the card order state transitions
PENDINGTRANSACTION
- Initial State
READY
, TRANSACTIONCOMPLETE
, CANCELLED
, FAILEDTRANSACTION
TRANSACTIONCOMPLETE
- Payment Processed
CONFIRMATIONREQUIRED
CONFIRMATIONREQUIRED
- Verification Needed
READY
READY
- Ready for Card Creation
CARDCREATED
CARDCREATED
- Success
CANCELLED
- Cancelled
PENDINGTRANSACTION
stateFAILEDTRANSACTION
- Payment Failed
PENDINGTRANSACTION
→ READY
:totalAmountEUR === totalDiscountEUR
TRANSACTIONCOMPLETE
→ CONFIRMATIONREQUIRED
:CONFIRMATIONREQUIRED
→ READY
:READY
→ CARDCREATED
:PENDINGTRANSACTION
→ CANCELLED
:PENDINGTRANSACTION
statePENDINGTRANSACTION
CANCELLABLE_ORDER_STATUSES
constant:
TransitionError
and return HTTP 422 status code.