Mobile money in Django
Django apps built on requests: models, views, management commands and tests, with callbacks confirmed under select_for_update().
Every guide's code was run in a fresh Django project with its tests passing. Other stacks: Next.js, Node.js, Laravel.
Take payments
Airtel Money
- Airtel Money Collections API in Django: USSD Push to CallbackAccept Airtel Money in Django: token caching, USSD push payments, callbacks confirmed by the status API, safe TIP and TA handling, and tests.
Flutterwave
- Flutterwave Mobile Money Uganda in Django: MTN and AirtelAccept MTN and Airtel mobile money in Uganda with Flutterwave in Django 5.2 and 6.x: charges, verif-hash webhooks, verified settlement and tests.
M-Pesa
- M-Pesa STK Push in Python & Django: Daraja API IntegrationAccept M-Pesa in Django 5.2 and 6.x with the Daraja API: STK push, Password and Timestamp, callbacks confirmed by STK query, 1037 handling and tests.
MTN MoMo
- MTN MoMo Collections API in Python & Django: Full IntegrationAccept MTN Mobile Money in Django 5.2 and 6.x with requests: token caching, a Payment model, Request to Pay, safe callbacks, a reconcile command and tests.
Paystack
- Paystack Mobile Money in Django: Ghana and Kenya (MTN, M-Pesa)Accept MTN, Telecel, AT and M-Pesa mobile money with Paystack in Django 5.2 and 6.x: subunits, signed webhooks, verified settlement and tests.
Pesapal
- Pesapal API 3.0 in Django: Payments, IPN and Transaction StatusAccept M-Pesa, MTN and card payments through Pesapal API 3.0 in Django: cached tokens, IPN registration, orders, safe IPN handling and status checks. Tested.
Send payouts
Refunds, seller and driver payouts. Comparing the APIs first? See mobile money payouts.
Flutterwave
- Flutterwave Mobile Money Payouts in Django: MTN and Airtel UgandaSend payouts to MTN and Airtel Money wallets in Uganda with the Flutterwave v3 Transfers API in Django, without ever paying twice. With tests.
M-Pesa
- M-Pesa B2C API in Django: Safe Payouts That Never Pay TwiceSend M-Pesa B2C payouts from Django: the SecurityCredential, the payment request, ResultURL and timeout views, and payouts that are never sent twice.
MTN MoMo
- MTN MoMo Disbursements API in Django: Safe Payouts and RefundsSend money to MTN MoMo wallets from Django with the Disbursements API: transfers, status checks, balance checks and payouts never sent twice, with tests.
Paystack
- Paystack Mobile Money Payouts in Django: Ghana and Kenya TransfersSend payouts to MTN, Telecel, AT and M-Pesa wallets with the Paystack Transfers API in Django, never paying twice, with reversals handled and 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.