Audience: an engineer joining Payments. Companion: technical.md, surface-map.md.
Payments are asynchronous and provider-mediated. PaymentService (6,479 lines) doesn't move money itself — it asks a provider (Flutterwave/Paystack/Monnify/VFD) or the Pade Wallet, then waits for a webhook to confirm. Treat every payout as "initiated → pending → (webhook) → success/failed", and never assume synchronous completion.
Day 1 — Concepts. business.md + glossary.md. Understand providers vs wallet vs pipeline, and the wallet products.
Day 2 — Execution. technical.md §2: InitiateEmployeeBankPayout / InitiateEmployeeWalletPayout, the provider services, and the webhook handlers.
Day 3 — Pipeline. Read payroll/payment-pipeline.md — how payroll debits the wallet and disburses (Process/Retry/Reverse); the staging→live item model.
Day 4 — Wallet & KYC. Wallet services (company/employee/control), verification/KYC, direct debit, beneficiaries, cross-border transfer purposes.
Day 5 — Reconciliation & edges. The sync/acknowledgement workers, idempotency, invoices/billing, control plane. Read runbook.md.
| You want… | Go to |
|---|---|
| Payment execution | Implementations/PaymentService.cs (6,479) |
| Providers | PaystackService, FlutterwaveService, PadeWalletService |
| Wallet | WalletService, Employee/WalletService, AdminWalletService, Control/ControlWalletService |
| Invoices | InvoiceService, Control/ControlInvoiceService |
| Pipeline | Admin/AdminPaymentScheduleService.cs (6,970) |
| Enums | PayrollModel.cs (wallet/payment) + SystemModel.cs (provider) |
| Workers | BackgroundServices/*Payment*.cs |
| Frontend | web-app/src/pages/dashboard/wallets/**, employee-dashboard/wallet/** |