Guide

How to Integrate the Safaricom M-Pesa Daraja API: A Practical Starting Guide

11 January 2026 ·12 min read ·By ABA Editorial
Kenya flag Kenya Financial Services

Safaricom's Daraja is the API gateway that connects your application to M-Pesa. This guide walks through the practical integration path: portal registration, sandbox setup, OAuth authentication, the STK Push payment flow, callback handling, and the transition from sandbox to production. Written for engineering teams building their first M-Pesa integration.

If you are building any product in Kenya that accepts or disburses money, you will eventually integrate with Safaricom's Daraja API. Daraja is the platform that exposes M-Pesa capabilities to third-party developers through RESTful endpoints: customer payments, business disbursements, balance queries, transaction status...

Read this article in full

Members read every article in full. You can also read our free to read articles without an account, marked on the Knowledge Hub.