Mobile money in Node.js
Plain Node.js with the built-in fetch and Express: small clients you can drop into any framework, with the same safety rules as every other stack.
Every guide's code was run in a fresh Node.js project with its tests passing. Other stacks: Next.js, Laravel, Django.
Take payments
Airtel Money
- Airtel Money Collections API in Node.js: USSD Push to CallbackAccept Airtel Money in Node.js: token caching, USSD push payments, safe callbacks confirmed by the status API, TA/TIP handling and offline tests.
Flutterwave
- Flutterwave Mobile Money Uganda in Node.js: MTN and AirtelAccept MTN and Airtel mobile money in Uganda with the Flutterwave v3 API in Node.js: charges, verified webhooks, reconciliation and tests.
M-Pesa
- M-Pesa STK Push Callbacks and ResultCode 1037: Handle Them RightWhy M-Pesa STK callbacks go missing, which ResultCodes are final, and how to handle 1037 without failing paid orders or charging customers twice.
- M-Pesa STK Push in Node.js: Daraja Integration with CallbacksAccept M-Pesa payments in Node.js with the Daraja API: token caching, Password and Timestamp, STK push, safe callbacks, 1037 handling and tests.
MTN MoMo
- MTN MoMo Collections API in Node.js: Sandbox to First PaymentAccept MTN Mobile Money payments in Node.js: sandbox credentials, token caching, Request to Pay, status checks and a safe callback handler, with working code.
Paystack
- Paystack Mobile Money in Node.js: Ghana and Kenya (MTN, M-Pesa)Accept MTN, Telecel, AT and M-Pesa mobile money with the Paystack Charge API in Node.js: subunits, signed webhooks, verify and reconcile, with tests.
Pesapal
- Pesapal API 3.0 in Node.js: Payments, IPN and Transaction StatusAccept M-Pesa, MTN and card payments through Pesapal API 3.0 in Node.js: tokens, IPN registration, orders, safe IPN handling and status checks. With tests.
Send payouts
Refunds, seller and driver payouts. Comparing the APIs first? See mobile money payouts.
Flutterwave
- Flutterwave Mobile Money Payouts in Node.js: MTN and Airtel UgandaSend payouts to MTN and Airtel Money wallets in Uganda with the Flutterwave v3 Transfers API in Node.js, without ever paying twice. With tests.
M-Pesa
- M-Pesa B2C API in Node.js: Safe Payouts That Never Pay TwiceSend M-Pesa B2C payouts from Node.js: SecurityCredential, the payment request, ResultURL and timeout handling, and payouts that are never sent twice.
MTN MoMo
- MTN MoMo Disbursements API in Node.js: Safe Payouts and RefundsSend money with the MTN MoMo Disbursements API in Node.js: transfers, status checks, balance checks and payouts that are never sent twice, with tests.
Paystack
- Paystack Mobile Money Payouts in Node.js: Ghana and Kenya TransfersSend payouts to MTN, Telecel, AT and M-Pesa wallets with the Paystack Transfers API in Node.js, without paying twice, and handle reversals. With tests.
Before you choose
- Payment API ChooserFive questions about your business, and which API fits.
- MTN MoMo API vs Flutterwave vs Paystack: Which Should You Use?Compare MTN MoMo, Flutterwave and Paystack for mobile money: countries, sign-up, payment flow, webhook security, status checks and payouts.