Accepting mobile money in your system: a practical guide for Uganda

By Onen Benard
Founder & Technical Lead

Smiling man working on a laptop with his phone on the desk beside him

In Uganda, the most natural way for many customers to pay is not a card. It is a mobile money prompt on their phone. If your system sells, collects fees or pays people out, connecting it to MTN Mobile Money and Airtel Money is often the single change that makes the biggest difference to how quickly you get paid. It is also easy to get subtly wrong. This guide explains how a mobile money payment actually works behind the scenes, which route to choose, and the details that separate a reliable integration from one that loses money.

Two ways to connect

Directly with each network. MTN offers the MoMo API through its developer portal, which includes a sandbox for testing, and Airtel Money provides an API for businesses through Airtel Africa's developer programme. Connecting directly can mean lower fees and a closer relationship with the network. It also means two separate integrations, two sets of contracts and business verification, and two settlement processes to reconcile.

Through a payment gateway. Gateways operating in Uganda, such as Flutterwave and Pesapal, among others, give you one integration that covers both networks and usually cards as well. You pay a percentage per transaction for that convenience, and money reaches your bank account on the gateway's settlement schedule.

For most organisations starting out, a gateway is the faster and simpler choice. Direct integration starts to make sense when transaction volumes are high enough that the fee difference matters, or when you need features only the network offers.

How a payment really flows

A card payment usually succeeds or fails in a few seconds while the customer waits. Mobile money is different, and understanding the difference is the key to building it well:

  1. Your system asks the network (or gateway) to collect a set amount from a phone number, and gives the request your own unique reference.
  2. The network sends a prompt to the customer's phone asking them to approve the payment with their PIN.
  3. The customer approves it, rejects it, or does nothing at all. They might be busy, have no network signal, or not have enough balance.
  4. Some time later, which may be seconds or several minutes, the network sends the outcome to your system through a callback, an automatic message to an address you provide.

In other words, the payment is asynchronous. Your system must be comfortable with a payment that is neither successful nor failed yet, and it must handle every possible ending to that wait.

What goes wrong, and how to design for it

  • The callback never arrives. Networks and servers have bad moments. Never rely on the callback alone: if no result arrives within a few minutes, ask the provider for the transaction's status, and keep checking on a schedule until you get a final answer.
  • The callback arrives twice. Providers may resend messages to be safe. Give every payment a unique reference and record each outcome once, so a repeated message can never deliver the same order twice.
  • The customer pays twice. An impatient double tap or a page refresh can start two requests. Prevent duplicates at the moment of starting a payment, not only when results come back.
  • Someone fakes a success message. Anyone who discovers your callback address could send a fake "payment successful" message. Before releasing goods or services, confirm the payment directly with the provider, or verify the message's signature where the provider supports it.
  • Amounts are stored badly. The Uganda shilling has no cents in practice, so store amounts as whole numbers of shillings. Avoid decimal arithmetic for money; it causes small rounding errors that add up and break reconciliation.

Show customers what is happening at each step. A clear "Check your phone and enter your PIN to approve UGX 50,000" message, followed by an automatic update when the payment completes, prevents most support calls before they start.

Reconciliation: matching money to records

Every day, your records should be matched against the provider's statement: each payment in your system should appear on the statement, and every amount received should belong to something in your system. Automated reconciliation catches problems while they are still small, such as a payment that succeeded at the network but never updated your system. Without it, those gaps only surface when a customer complains or an auditor asks.

Paying out is riskier than collecting

Many systems also need to send money: refunds, commissions, salaries, payments to landlords or suppliers. Mistakes here are far harder to reverse than a failed collection. Build in proper controls from the start:

  • Require approval by a second person above an agreed amount.
  • Set daily limits per recipient and in total.
  • Keep a complete log of who started, approved and released each payment.
  • Confirm the recipient's registered name before sending, where the provider allows it.

Security and compliance basics

API keys and passwords for payment services belong only on your server, stored as protected settings, never inside a mobile app or a web page where they can be extracted. All traffic should run over HTTPS. Phone numbers and payment histories are personal data under Uganda's Data Protection and Privacy Act, 2019, so collect only what you need and protect it accordingly. If your business is registered for VAT, also check your obligations under the Uganda Revenue Authority's EFRIS system for electronic receipts and invoices.

Testing before go-live

Use the provider's sandbox to test every path: success, rejection, timeout, duplicate callback and status checks. Then, before launching, run a handful of small real payments end to end, including at least one refund, and confirm that each one appears correctly in your records and on the provider's statement.

In short

A reliable mobile money integration treats every payment as a process with several possible endings, confirms results with the provider, refuses to count anything twice, and reconciles every day. Get those foundations right and mobile money becomes the most convenient way for your customers to pay you. If you are planning an integration, or the one you have keeps causing headaches, we are happy to review it with you.

All articles

Written by Onen Benard, Founder & Technical Lead

Let's build something

Have something in mind? Let's talk.

Tell us what you're trying to achieve. We'll reply within one working day with honest advice on how we'd approach it.