Status: Accepted (in force). Reconstructed.

Context

No single payment provider covers every bank, currency, limit and uptime need in the markets PaidHR serves. Relying on one is a single point of failure.

Decision

Support multiple providers — Flutterwave, Paystack, Monnify, VFD (PaymentProviderParams) — each behind its own service (FlutterwaveService, PaystackService, PadeWalletService), orchestrated by a single PaymentService. Which provider a tenant uses is config-driven (provider keys as Direct Deposit Integration Settings).

Consequences

Good: resilience (fail over / route by capability); market coverage; the rest of the system calls one PaymentService regardless of provider.

Bad / costs: each provider has different APIs, webhooks, and quirks to maintain; reconciliation must handle provider-specific states; testing spans multiple sandboxes.

Alternatives

Related

technical §2.