Back to articles
A unified TypeScript SDK for Nigerian fintech providers...
NewsTools

A unified TypeScript SDK for Nigerian fintech providers...

via Dev.toOluwafemi Awoyemi

Stop Rewriting Your Paystack Integration — I Built a Unified Nigerian Fintech SDK If you've built more than one Nigerian fintech product, you've written the same code at least twice. Paystack integration. Then a client wants Flutterwave. Then another wants Monnify because their bank has a deal with them. Each time, you're not just swapping an API key — you're rewriting your payment initialization, your webhook handler, your transfer logic, your error handling. The shape of every response is different. The status strings are different. Even the amount units are different (Paystack uses kobo, Flutterwave uses naira, Monnify uses naira). I got tired of it. So I built ng-pay . What It Is ng-pay is a TypeScript SDK that puts Paystack, Flutterwave, and Monnify behind one interface. You write your payment code once. Switching providers — or supporting multiple at once — is a one-line change. // Change this one line to switch providers const provider = new PaystackProvider ({ secretKey : proce

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles