The Backend of LuckTrainingRoadmaps

Casino Deposit Processing Lifecycle (Chapter 36)

Casino Deposit Processing Lifecycle (Chapter 36) A sequence diagram generated by Archify. Deposit request (amount, method) validated: limits, KYC, AML passed Initiate payment (provider selected) 3DS / bank authorization Callback: SUCCEEDED Enqueue credit (PROCESSING_ON_ACCOUNT) Consume + credit balance Deposit confirmed Player · web + mobile · Sequence participant Player web + mobile Platform · limits, KYC, AML · Sequence participant Platform limits, KYC, AML Pay Router · PSP selection · Sequence participant Pay Router PSP selection PSP · Adyen / PXP · Sequence participant PSP Adyen / PXP Kafka · async credit event · Sequence participant Kafka async credit event Wallet · ledger balance · Sequence participant Wallet ledger balance Legend request return security async trace default message

Two-Phase Commit By Design

  • • PSP success does not mean the wallet is credited
  • • Kafka carries PROCESSING_ON_ACCOUNT until consumed
  • • An outage queues deposits instead of losing them

State Machine

  • • STARTED to PENDING to PROCESSING to SUCCEEDED
  • • FAILED, ABANDONED, VOIDED can branch anywhere
  • • Every transition is persisted for audit

Cost Stack

  • • Network, issuing, acquiring, gateway, FX fees stack
  • • Totals: 1.5% domestic to 4%+ cross-border
  • • Route domestic local, cross-border best FX