Kotlin Library for Chargily ePay Gateway
FYI this module uses async await
I will add this to MAVEN As soon as possible
// creat a client Instance
val chargiliClient : Chargily = Chargily("Put your API KEY HERE ")
//creat a invoice model
val invoice :InnoviceModel =
InnoviceModel("mohameed" ,"mohamed.hacine00@gmail.com" , "3545644" , 009999.4 , 7.5 ,"https://www.yourwebsite.com",
"https://www.yourwebsite.com/purshase" , PaymentMethode.EDAHABIA ,"Hola ")
GlobalScope.launch {
var response = chargiliClient.creatPayment(invoice)
var checkout = response.body()?.checkout_url.toString())
println(checkout)
}
This Package is to integrate ePayment gateway with Chargily easily.
- Currently support payment by CIB / EDAHABIA cards and soon by Visa / Mastercard
- This repo is recently created for Android SDK, If you are a developer and want to collaborate to the development of this Package, you are welcomed!
- Make a fork of this repo.
- Take a tour to our API documentation here
- Get your API Key/Secret from ePay by Chargily dashboard for free.
- Start developing.
- Finished? Push and merge.