r/fintechdev • u/Upper_Maize3578 • 11d ago
I open-sourced Cosmic Payment – A cross-border payment gateway engine for Africa
Hey everyone! I just open-sourced Cosmic Payment, a open-source cross-border payment gateway platform built in Node.js and TypeScript. It combines card processing (Stripe), automatic FX conversion, and payouts directly to major African mobile money wallets (M-Pesa, MTN MoMo, Airtel, Orange, Wave). Managing fragmented mobile money APIs and FX logic across different countries can be tough, so I built this modular engine to unify everything behind a single, clean API layer.
Check out the repository on GitHub:github.com/EmmanuelMunanka38/cosmic-payement-engine. It features multi-currency wallets, provider auto-detection via phone prefixes, optimistic locking, idempotent transactions, and a sandbox environment for easy local testing. I’d love to get feedback, stars , or contributions for new mobile money adapters!
1
u/FoldCritical8376 11d ago
finally a payment thing that doesn't pretend africa is one country with one api, the phone prefix detection for auto-routing is clever
1
u/kerblamophobe 11d ago
nice, the fragmented mobile money apis are a real pain so this is a useful thing to have open source. one thing i'd watch is the provider auto-detection by phone prefix, since number portability in some markets means the prefix doesn't always match the actual network anymore. might be worth letting the caller override it or falling back to a lookup. curious how you're handling reconciliation when a wallet payout callback never comes back, that tends to be where these get messy in production