Android SDK
The Android SDK is designed to allow the integration of KKiaPay into your mobile application.
Installation
Add the following line in your root
settings.gradlefile insiderepositoriesofdependencyResolutionManagementsection
maven { url 'https://jitpack.io' }Add the following line in your app's
build.gradlefile insidedependenciessection
implementation 'com.github.kkiapay:android-sdk:<latestVersion>'Usage
Get your API Key on kkiapay Dashboard at Developer section and initialize the Sdk in your Application Class
Initiate the API
In the onCreate method of your Application class :
import co.opensi.kkiapay.uikit.Kkiapay
import co.opensi.kkiapay.uikit.SdkConfig
Kkiapay.init(applicationContext,
"<kkiapay-api-key>",
SdkConfig(themeColor = R.color.colorPrimary,
/* set enableSandbox = false in case you are using live API Keys */
enableSandbox = true )
)Example
Reference
api_key
String
Yes
public api key
amount
Number
Yes
Amount to debit from user account (XOF)
phone
String
Yes
Valid mobile money number to debit. ex : 22967434270
name
String
No
Client firstname and lastname
String
No
Client email
partnerId
String
No
Your id to find transaction
paymentMethods
Array of string
No
Set widget payment methods ex: ["momo","card"]
sandbox
Boolean
No
The true value of this attribute allows you to switch to test modet
reason
String
No
Reason of transaction
Last updated
Was this helpful?