M2M Payments: Collecting Mobile Money Across M-Pesa, Airtel Money and MTN

Machine-to-machine (M2M) payments are the quiet engine behind a growing number of businesses in East Africa: water ATMs, vending machines, smart meters, connected equipment, and devices that unlock or credit on payment. In each case, a machine needs to know that money has arrived, and it needs to know without a person checking a phone or a statement.

This guide explains how M2M payment collection works across the mobile money networks most operators use, M-Pesa, Airtel Money and MTN Mobile Money, and what to plan for when a business runs on more than one of them. It’s written for IoT developers, utility and vending operators, and businesses that want connected equipment to respond to payments automatically.

What “M2M” means for a payment

In a typical consumer payment, a person opens an app, enters an amount, and approves it. In an M2M setup, the trigger comes from a system, and the result goes to a device. The customer’s part is still a person approving a payment on their phone, but everything after that is handled by software.

A simple M2M flow has four parts:

  1. The device or the customer starts a purchase. A customer chooses a water volume, a vending item, or a unit of electricity.
  2. The system requests a payment. The business’s system asks the payment provider for a prompt on the customer’s phone.
  3. The customer approves. They enter their mobile money PIN on their own handset.
  4. The device responds. Once the payment is confirmed, the system tells the device to dispense, credit, or unlock.

The important point is step four. The device should act only on a confirmed payment, and the confirmation should carry enough information to match it to the right machine or account.

The three networks and where they fit

Mobile money is common across the region, but the networks differ. A business that operates in more than one market, or serves customers who use different SIMs, needs to plan for each one.

  • M-Pesa is the dominant network in Kenya. Most customers in Kenya already use it for small everyday payments.
  • Airtel Money is widely used in Uganda, Tanzania, Rwanda and other markets, and is common among customers who use Airtel SIMs.
  • MTN Mobile Money is used in several markets across the region, with a strong base among MTN subscribers.

Which network matters depends on where the machines are and whom they serve. Survey customers, or check the sales data from a pilot, before promising a payment method. A machine that accepts only one network may turn away a large share of the people who want to use it.

For the networks and markets currently live for collections, check the IntaSend coverage page. Confirm each rail for your use case before you rely on it.

Why one integration beats three

A business that connects to each network separately ends up maintaining three sets of prompts, confirmations, messages, and reconciliation routines. Each one can fail in its own way, and each needs its own testing.

A single integration that covers several networks keeps the device logic the same. The machine asks for a payment, receives a confirmation, and responds in the same way, whichever network the customer used. The differences are handled in the payment layer, not on the device. IntaSend’s Payments API is built on this model.

Even with one integration, test each network with a real account. The prompt, the confirmation timing, and the failure messages can differ, and a customer who can’t pay on their network will simply walk away.

Matching payments to machines

The most important design question in M2M payments is how a payment is matched to the right device or account. The payment request carries a reference that you choose, and the confirmation carries that reference back. Your system uses it to find the machine or account that should respond.

For each machine, use a reference that is unique to the purchase attempt and clearly tied to the device. Avoid reusing references across purchases, because that makes it hard to tell which payment belongs to which device. A payment that can’t be matched should go to a person for review, rather than being guessed.

Check the amount and currency on every confirmation before the device acts. A machine that dispenses or credits for the wrong amount causes a dispute, and the cost of fixing it is usually higher than the cost of checking.

Making the device respond safely

Once a payment is confirmed, the device should respond once and only once. Payment messages can be repeated, and they don’t always arrive in the order they were sent. A few rules keep devices safe:

  • Act only on a confirmed state. Anything other than a completed payment should leave the device off.
  • Make the response repeatable. A repeated confirmation for the same purchase should not dispense or credit twice.
  • Keep the payment record and the device action separate. If the device fails to respond, the payment is still valid. Retry the device action, and don’t ask the customer to pay again.
  • Log every step. A clear record of the request, the confirmation, and the device response makes disputes easier to resolve.

These rules matter most for vending and water dispensing, where a double response means lost product or water, and for smart meters, where a double credit means lost revenue. Our guides on cashless payment for vending machines and smart meter billing in Kenya apply these rules to each type of equipment.

Plan for failed and cancelled payments

M2M payments fail for the same reasons as any mobile money payment. The customer may cancel the prompt, the phone may be unreachable, or the balance may be too low. Each is a one-time failure, and no money has moved.

The machine should tell the customer what happened in plain terms and offer a clear way to retry. A screen that says “payment cancelled, press to try again” is far better than a machine that appears to ignore the purchase.

Keep a short record of failed attempts by machine and by network. A pattern, such as one network failing more often at a particular site, usually points to a coverage or handset issue rather than a fault in the machine.

Reconciliation across networks

Each network produces its own statement, and the figures need to be reconciled against the machine’s sales record. A simple routine works well:

  • Compare each machine’s sales with the payments confirmed for it.
  • Reconcile each network’s total against its own statement.
  • Investigate any confirmed payment that didn’t produce a device response.
  • Record the total collected by network, so you can see which one your customers use most.

Once each network is reconciled, the combined view gives an accurate picture of the business. Keep the figures in local currency first, and convert only for the consolidated summary.

Common mistakes in M2M payment projects

Designing for one network. A machine built only for M-Pesa turns away customers on Airtel or MTN, and retrofitting later is expensive.

Treating the prompt as the device action. A prompt approved on the phone is not the same as a confirmed payment. The device should wait for the confirmation.

Skipping the failure cases. Cancelled prompts, unreachable phones, and duplicate confirmations are where most support problems start. Test them before launch.

Ignoring reconciliation until the end of the month. Gaps are much easier to explain on the day they happen than weeks later.

Hard-coding amounts in the device. Price changes should be made in one place, and the device should follow the same record the payment uses.

Where IntaSend fits

IntaSend provides mobile money collection for connected businesses across Kenya, Uganda, Tanzania, Rwanda and the DRC, using one integration where IntaSend is live. The payment request, the confirmation, and the reference that links them back to a machine are handled through the API and webhooks. The device logic, pricing, and the decision to dispense, credit, or unlock stay with your business and your device platform.

If you run connected equipment and want to talk through how M-Pesa, Airtel Money or MTN collections could work for your machines, speak to the IntaSend team. You can also reach us on WhatsApp at +254 711 082 947, by email at [email protected], or by phone at +254 114 114 644.

Banking services provided by licensed partners.

What Our Clients Say About Us

Don’t just take our word for it—hear what our satisfied customers have to say! IntaSend has helped businesses and individuals across Kenya and beyond streamline their payments.

  • The experience has been seamless, efficient, and hassle-free. One thing that makes Intasend stand out is the platform's ability to collect payments from anywhere in the world.

    Felistas Njihia - IntaSend customer
    Felistas NjihiaFelin Solutions
    ★★★★★
  • Our experience with IntaSend has been remarkable. The integration process was quite smooth with proper API documentation. Intasend won us over on the ease of B2B transactions which is our mainstay and remains our preferred payment solutions

    Kelvin Muriuki, C.E.O - IntaSend customer
    Kelvin Muriuki, C.E.Otaka.earth
    ★★★★★
  • Their platform is incredibly user-friendly, allowing our customers to easily pay for their weekly meals. The fast and secure payment process also provides peace of mind for both our customers and us.

    John Faderr - IntaSend customer
    John FaderrFoodtable by Roros Co.
    ★★★★★
  • @intaSendHQ I am currently blown away by your product. The documentation is so developer friendly as opposed to one pan-African payment gateway, market leader. Good job!

    @Matinde on Twitter - IntaSend customer
    @Matinde on Twitter
    ★★★★★
  • Their customer service is top-notch. The team at IntaSend Payments is friendly and super responsive, always there to lend a hand whenever you need it.

    Wearify on Shopify - IntaSend customer
    Wearify on ShopifyWearify Kenya
    ★★★★★
  • I would like to commend your service and especially point out your outstanding quick turn-around in processing payment and your after-office hour’s support. We are glad that you can be reached 24/7 for queries and round-the-clock support.

    Peter Nyotta - IntaSend customer
    Peter NyottaTwende Worldwide Tours and Travel Ltd
    ★★★★★
  • This payment processor has allowed me to continue serving my local as well as international customers. They also offer reasonable fees and their payouts are timely. Even without a website, IntaSend payment links works just fine.

    Shadrack Masinde - IntaSend customer
    Shadrack MasindeGofan Safaris Limited
    ★★★★★
  • I have been using Intasend for a while now both on my website as a payment gateway and my business as a payment solution and all I can say is, IntaSend is the best solution to sort out all business payment related difficulties.

    Daniel Nyongesa - IntaSend customer
    Daniel NyongesaA+ Academic Consultants
    ★★★★★
  • IntaSend is one of the best online money transfers with mobile and card payment options and helps in collecting emails for marketing.

    Moses Thoithi - IntaSend customer
    Moses ThoithiWizAdventures Safaris
    ★★★★★

Frequently Asked Questions

What are M2M payments?

M2M (machine-to-machine) payments are payments where a system triggers the payment request and a device acts on the result. The customer still approves the payment on their phone, but the confirmation goes to software that tells a vending machine, meter or other device to dispense, credit or unlock.

Which mobile money networks should an M2M business support?

It depends on where the machines are. M-Pesa dominates in Kenya, while Airtel Money and MTN Mobile Money are widely used in other East African markets. Survey customers or check pilot sales data before promising a payment method.

Why use one integration instead of connecting to each network?

A single integration keeps the device logic the same whichever network the customer uses. The machine requests a payment, receives a confirmation and responds in the same way, and network differences are handled in the payment layer.

How do you stop a machine from dispensing twice for one payment?

Act only on a confirmed payment state, key each action on the purchase reference, and ignore repeated confirmations for a purchase that has already been fulfilled.

How should M2M payments be reconciled across networks?

Compare each machine's sales with its confirmed payments, reconcile each network's total against its own statement, investigate any payment without a device response, and keep figures in local currency before consolidating.