Introduction to Daraja API

Introduction to Daraja API

·

1 min read

Hello friends 👋, in this series we are going to cover integration of M-Pesa Services into our Flutter Mobile Application. I’ve always loved how M-Pesa uniquely addressed the East African financial needs; providing a secure sim card - based banking and money transfer service.

The success of M-Pesa in the East African region has been tremendous. Integrating M-Pesa services into products developed for the East African market is therefore very essential. Safaricom, a leading communications company in Kenya and the home of M-Pesa encourages this integration and has exposed API endpoints for accessing M-Pesa services - Daraja API.

In this series, we’ll be exploring the Lipa Na M-Pesa Online API, which is a Merchant (Business) initiated C2B (Customer to Business) Payment.

Things to be covered in this series include:

  1. Making the STK Push Trigger Request.
  2. Capturing the M-Pesa webhook.
  3. Creating a simple M-Pesa webhook handler.

Prerequisites:

  1. Register and sign up on Safaricom Developers Portal
  2. Create a sandbox app on the Developers Portal. The app will generate credentials (username and password) for accessing the API.

See you in the next post, in which we'll be making the STK Push Trigger Request.

Till then, happy coding 🤠

Resources:

Credits: