Giter Club home page Giter Club logo

lnmonlineandroidsample's Introduction

LNMOnlineAndroidSample

Lipa Na MPESA Online Android Sample Application

This is to demonstrate implementation of the Lipa Na MPESA Online API from the Safaricom Developer Portal https://developer.safaricom.co.ke/

Installation

  1. Create and account on the Safaricom Developer Portal -> https://developer.safaricom.co.ke/
  2. Create a Lipa na MPESA Online App
  3. Clone the Repository and build the project
  4. Setup Firebase Cloud Messaging. Android FireBase Cloud Messaging Tutorial -> https://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

Screenshots

Add an item to the cart:

alt text

Add a customers phone number:

alt text

The STK push payment popup is sent to the customer phone:

alt text

MPESA confirmation message:

alt text

Payment confirmation from the API callback:

alt text

Third Part Libs Used

  1. Sweet alerts https://github.com/pedant/sweet-alert-dialog
  2. Butterknife https://github.com/JakeWharton/butterknife
  3. Retrofit http://square.github.io/retrofit/
  4. GSON https://github.com/google/gson
  5. FireBase https://firebase.google.com/docs/android/setup
  6. okhttp http://square.github.io/okhttp/
  7. okio https://github.com/square/okio

lnmonlineandroidsample's People

Contributors

kisese avatar

Watchers

James Cloos avatar Steve Kamau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.