Payment Infrastructure
Multi-tenant | Multi-PSP | Cascading | Adapter Pattern
Architecture Overview
Deposit | Withdrawal
PSP Management | Routing
Webhook events -- UI
JWT + Brand context
Velocity checks
Deposit | Withdrawal routes
Routing rules engine
Failover PSP1 → PSP2 → PSP3
INITIATED → PROCESSING → DONE
BIN + preferred method
Min/max, velocity, KYC gate
initiateDeposit | getStatus | handleWebhook
Your current provider
Next integration
Pluggable
Balance | ledger
Verification gates
Wager | locks
Nightly PSP sync
Key Flows & Reference
DEPOSIT FLOW
TRANSACTION STATES
ROUTING DIMENSIONS
Reference Documents
DB tables: transactions, psp_configs…
PassimPay statuses → UnifiedStatus
IPaymentProvider types & API contract
JWT validation & brand resolution
PassimPay implementation spec
PassimPay service overview & onboarding
How frontend tracks transaction status
Delivery Phases
Documents only -- no code
Backend only -- frontend not needed yet
Backend continues, frontend starts in parallel