Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jumaallan/android-mpesa-api
Android MPESA SDK Library to provide smooth MPESA Experience in Android - Dubbed Daraja
https://github.com/jumaallan/android-mpesa-api
android android-library daraja daraja-api daraja-mpesa mpesa mpesa-android mpesa-api mpesa-sdk
Last synced: 5 days ago
JSON representation
Android MPESA SDK Library to provide smooth MPESA Experience in Android - Dubbed Daraja
- Host: GitHub
- URL: https://github.com/jumaallan/android-mpesa-api
- Owner: jumaallan
- License: mit
- Created: 2018-04-13T18:26:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T23:24:04.000Z (6 months ago)
- Last Synced: 2025-01-13T08:01:15.961Z (19 days ago)
- Topics: android, android-library, daraja, daraja-api, daraja-mpesa, mpesa, mpesa-android, mpesa-api, mpesa-sdk
- Language: Kotlin
- Homepage: https://androidstudy.com
- Size: 1.66 MB
- Stars: 197
- Watchers: 21
- Forks: 187
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Android M-Pesa Daraja SDK
This is a simple Android M-PESA SDK to allow you to integrate Safaricom M-PESA API dubbed ***Daraja*** in your Android App with ease without knowing a thing. It’s easy. I promise. :rocket:
> This version only offers the MPESA Express (STKPush) Support.
## Download
Daraja available for download on `mavenCentral()`
Kotlin
```kotlin
dependencies {
implementation("com.androidstudy.daraja:daraja:2.0.2")
}
```Groovy
```groovy
dependencies {
implementation 'com.androidstudy.daraja:daraja:2.0.2'
}
```## Quick Start
WIP - need to be updated
## Requirements
* AndroidX
* Min SDK 14+
* Java 8+## Lipa na M-Pesa Online Payment API
The following table highlights the requirements needed by Daraja, as described in the [Safaricom Developer API Page](https://developer.safaricom.co.ke/lipa-na-m-pesa-online/apis/post/stkpush/v1/processrequest)
| Name | Description | Parameter Type | Possible Values |
| ------------- |:--------------------: | ----------------: | ---------------:|
| BusinessShortCode | The organization shortcode used to receive the transaction | Numeric | Shortcode (6 digits) |
| Passkey | Lipa Na Mpesa Online PassKey | Alpha-Numeric | |
| Amount | The amount to be transacted | Numeric | 100 |
| PhoneNumber | The MSISDN sending the funds | Numeric | MSISDN (12 digits) |
| CallBackURL | Call Back URL | URL | https://ip or domain:port/path |
| AccountReference | Account Reference | Alpha-Numeric | Any combinations of letters and numbers |
| TransactionDesc | Description of the transaction | String | any string of less then 20 characters |> Get the Pass Key Here : https://developer.safaricom.co.ke/test_credentials