“Section's Engineering Education (EngEd) Program is dedicated to offering a unique quality community experience for computer science university students."
Apache License 2.0
363
stars
889
forks
source link
[Android] Creating a Callback URL for Safaricom Daraja API - (Lipa na Mpesa) with Firebase Cloud Functions in Android #4328
[Android] Creating a Callback URL for Safaricom Daraja API - (Lipa na Mpesa) with Firebase Cloud Functions in Android
Proposed article introduction
Adding Lipa Na Mpesa features to your Android has been made easier with the introduction of Daraja API developed by Safaricom. It is the wish of every developer to receive all the information that Safaricom sends when a user of their app does a transaction because some payments go through and some fail. This information is useful in updating records in your Application.
A callback is an asynchronous API request that originates from the API server and is sent to the client in response to an earlier request sent by that client.
As an Android developer, having a callback URL means that you need to have a REST backend that will receive a response. This might be expensive. We can create a simple API with Firebase Cloud Functions that will help us to receive the data for the callback URL.
Key takeaways
What is Safaricom's Daraja API Callback URL
How to Create a Callback URL with Firebase Cloud Functions
Understand how to add a callback URL to your Android App
Understand how to use the callback information that you receive from Safaricom
Article quality
My article will be unique because there is no clear article or blog post that tries to explain about creating a callback URL in Android, most of them are for web applications.
[Android] Creating a Callback URL for Safaricom Daraja API - (Lipa na Mpesa) with Firebase Cloud Functions in Android
Proposed article introduction
Adding Lipa Na Mpesa features to your Android has been made easier with the introduction of Daraja API developed by Safaricom. It is the wish of every developer to receive all the information that Safaricom sends when a user of their app does a transaction because some payments go through and some fail. This information is useful in updating records in your Application.
A callback is an asynchronous API request that originates from the API server and is sent to the client in response to an earlier request sent by that client.
As an Android developer, having a callback URL means that you need to have a REST backend that will receive a response. This might be expensive. We can create a simple API with Firebase Cloud Functions that will help us to receive the data for the callback URL.
Key takeaways
Article quality
My article will be unique because there is no clear article or blog post that tries to explain about creating a callback URL in Android, most of them are for web applications.
References
N/A
Templates to use as guides