For your Android development, this Android SDK includes a helper class that will assist in providing global api call settings.
Additionally, methods are offered to assist in overwriting the globally set configurations inside the request object that has been instantiated.
The idea of overriding is brought to you for safe usage of this SDK within async environment.
Virtual Account Endpoints
- Create virtual accounts
- Check balance
- Verify deposit transaction
- Transfer fund
- Bank list
- Transfer Name Enquiry
- Create Zainbox
- Get all Zainboxes
- Get all Zainbox Accounts
- Update Virtual Account Status
- All Virtual Account Balance of a Zainbox
- Virtual Account Transactions
- Create Settlement
- Get Settlement
- Transfer Verification
- Zainbox Transactions History
- Total Payment Collected By Zainbox
- Zainbox Profile and Current Billing Plan
- Merchant Transactions
Card Endpoints
- Initialize Payment
- Test Cards
- Get Card Payment Status
- Android Kotlin
minsdk=21
andtargetsdk=33
- Implemented Kotlin version
>= 1.7.10
- Implemented Gradle version
= 7.3.0
- Add the dependency to your project. In your
build.gradle
, file
implementation 'com.github.ismailukman:zainpay_android_sdk:1.2'
To create a virtual account in zainbox, your function expect required constructor.
fun createVirtualAcc(token: String, bank_type: String, first_name: String, surname: String,
email: String, mobile_number: String, dob: String, gender: String,
address: String, title:String,state:String, zainbox_code:String)
{
"bankType": "wemaBank",
"firstName": "Lukman",
"surname": "Shuaib",
"email": "luk@gmail.com",
"mobileNumber": "09067876540",
"dob": "12-08-1996",
"gender": "M",
"address": "Jamai",
"title": "Mr",
"state": "Kogi",
"zainboxCode": "THbfnDvK5o"
}
Server response for this method returns a json Object with a reply.code
.
{
"code": "00",
"data": {
"accountName": "Shuaib Lukman ",
"accountNumber": "4426764771",
"bankName": "wemaBank",
"email": "luk@gmail.com"
},
"description": "successful",
"status": "200 OK"
}
//val server_response = jsonObject?.toString(5)
//Log.d("createVirtualAcc Response:", server_response.toString())
reply.code
can be null or an error response code from server .- You need to confirm the transaction is successful. Ensure that the txRef, amount, and status are correct and successful.
- Be sure to verify the transaction details before providing value.
By contributing to the Zainpay Android library, you agree that your contributions will be licensed under its MIT license
Copyright (c) Official Zainpay API Documentation