Problem
lib/bills/payment-gateway.ts references Flutterwave in comments and types but only Paystack is implemented. Flutterwave has broader coverage for payments across Kenya, Ghana, South Africa, Uganda, and Tanzania.
For Aframp's 12-country target market, Flutterwave is essential.
Fix
- Implement
FlutterwaveGateway class conforming to the PaymentGatewayService interface
- Add Flutterwave webhook verification (HMAC with
FLW-SECRET-HASH header)
- Add a
PAYMENT_GATEWAY env var to select the active gateway per country
- Wire mobile money routes through Flutterwave's collection API
Impact
High product — Paystack-only support limits the platform to Nigerian users.
Problem
lib/bills/payment-gateway.tsreferences Flutterwave in comments and types but only Paystack is implemented. Flutterwave has broader coverage for payments across Kenya, Ghana, South Africa, Uganda, and Tanzania.For Aframp's 12-country target market, Flutterwave is essential.
Fix
FlutterwaveGatewayclass conforming to thePaymentGatewayServiceinterfaceFLW-SECRET-HASHheader)PAYMENT_GATEWAYenv var to select the active gateway per countryImpact
High product — Paystack-only support limits the platform to Nigerian users.