Lipa Na MPESA Online (STK Push) Android Sample Application. This app demonstrates an e-commerce purchase and checkout process via Mpesa and Daraja :smile:
This app demonstrates how to impeliment Lipa Na MPESA Online. Documentation on the API can be found on [Safaricom Developer Portal] (https://developer.safaricom.co.ke/docs)
sample.gradle.properties
file to gradle.properties
then add you Consumer key
and Consumer secret
.sample-google-services.json
inside app
directory and rename it to google-services.json
. This will ensure your project build without an error.sample-google-services.json
is just a sample file to help you bypass build error due to a google-services.json
missing.
In order to send push notifications to the user, you will need to setup [FCM - Firebase Cloud Messaging Service] (https://firebase.google.com/docs/cloud-messaging/android/client). AndroidHive has an awesome tutorial on this.