Status: Source-port complete; deployment, security and settlement validation remain open. The system source is a July 17 code-derived snapshot; its demo wallet was disabled/unfunded. Service sizes and controller counts are orientation aids, not current completeness guarantees.

Architecture and ownership

PaymentService orchestrates bank/wallet payouts beneath Payroll payment schedules and wallet operations. The documented route is initiate → call provider → persist processing/staging evidence → await notification → update outcome → reconcile. Source prose does not establish transaction atomicity between remote submission and local persistence; inspect the implementation before relying on that sequence for recovery.

Component Responsibility
PaymentService InitiateEmployeeBankPayout, InitiateEmployeeWalletPayout; schedule creation/item operations and provider notification handling.
AdminPaymentScheduleService Payroll/custom schedule administration; full pipeline belongs to ‣.
FlutterwaveService, PaystackService, PadeWalletService Provider adapters. Monnify/VFD appear in configuration/enums; dedicated implementations and active support need verification.
WalletService, AdminWalletService Company wallet balance/movement and administrative access.
Employee/WalletService Employee wallet surface; must resolve the employee’s own scope.
Control/ControlWalletService Platform oversight and verification across tenants; not equivalent to company admin access.
InvoiceService, Control/ControlInvoiceService Tenant and platform invoice/subscription/VAT responsibilities.

Provider choice is configuration-driven through Direct Deposit Integration Settings. A provider enum or adapter name does not prove automatic failover, current currencies, limits or equal capability. RFD-001 describes multi-provider resilience as reconstructed intent; do not turn it into an untested routing guarantee.

Asynchronous confirmation and workers

Worker Documented role
ProcessQualifiedPaymentWorkerService Process qualified/ready payouts.
PaymentAcknowledgementConsumerService Consume queued acknowledgements.
PaymentSynchronizationService Reconcile payment status.
BeneficiaryPaymentNotificationService Notify recipients.
EmployerPaymentNotificationService Notify employers.

Flutterwave/Paystack payout notifications are handled through PaymentService; some related IntegrationController routes are commented in the source. Do not infer an active callback URL from those declarations. Exact authentication, signature checking, queue persistence, attempt policy and duplicate-event handling are not supplied.

RFD-002 explains eventual confirmation rather than assuming success on request acceptance. A pending operation can represent different debit stages; do not replay it simply because a callback is late. Worker existence does not prove a guaranteed reconciliation window or exactly-once effects. Notification delivery is a separate outcome from payment completion.

Typed movements and evidence

RFD-003 describes wallet movement classification by WalletProductParams, additional compliance transfer purpose and statement code. These are different dimensions. EWA repayment, external-loan repayment, subscription and VAT must not collapse into an undifferentiated transfer. Classification supports reconciliation but does not itself prove debt settlement or a balanced ledger.

Company/employee wallet and platform control scopes must remain distinct. Provider references, wallet currency, company/organisation, beneficiary and schedule/item references are needed to correlate evidence. Exact entities, uniqueness constraints and complete ledger posting invariants were not supplied in this source slice; chapter 05 records only established contract details.

Security and failure review

Design rationale and starting points