Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.
/ MpesaDaraja Public archive

Accompanying repository for the blog on how to implement the Safaricom LNMO API.

Notifications You must be signed in to change notification settings

lawrence254/MpesaDaraja

Repository files navigation

MpesaDaraja

This is an accompanying repository for a blog that gives a step by step on how to implement successfully the Safaricom Daraja API,It is a very simple application that you can use as a launching pad to build out your android application that implements the MPESA API. It implements the LNMO api in sandbox mode but it should be relatively easy to move to production with this, but you will have to remove some loggers for security purposes.

So Where is the blog?

So the blog i divided into two parts. THe first part is a basic introduction to those who have yet to interact with the Safaricom Daraja API. In this first part you learn how to create a project, get Consumer Keys and Consumer Secrets and Start you LNMO app.

The second part will be showing how to plug these values into your android application to get it to make transactions.

Part 1

Mpesa Integration

Backend (CallBack)

In order for your transactions to complete successfully, you need to provide a Callback Url which will receive all communication on failure or passing of your requests.

The following is a link to the callback back files I'm using. You only need to fill in your db username, password, host and select the db to use, create teh table to store your data and you're all set.

As a bonus, if you would like to search throught the stored data, this file provides a basic search functionality that allows you to search through your table based on the users phone number.

About

Accompanying repository for the blog on how to implement the Safaricom LNMO API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages