SDK Flutter
This SDK is designed to allow the integration of KKiaPay into your Flutter mobile application. To set it up you will need to create an account on kkiapay.me platform and follow the process here describes :
Installation
To use this package :
dependencies:
flutter:
sdk: flutter
kkiapay_flutter_sdk:For web
add to your index.html
<script src="https://cdn.kkiapay.me/k.js"></script>Usage
import 'package:kkiapay_flutter_sdk/kkiapay_flutter_sdk.dart';Initialise the Kkiapay Instance
final kkiapay = KKiaPay(
@required callback: Function(Map<String, dynamic> response, BuildContext context),
@required amount: int, // Ex : 1000
@required apikey: String, // Ex : XXXX_public_api_key_XXX
@required sandbox: bool, // Ex : true
data: String, // Ex : 'Big data'
phone: String, // Ex : "22961000000"
name: String, // Ex : "John Doe"
reason: String, // Ex : "transaction reason"
email: String, // Ex : "[email protected]"
callbackUrl: String, // Ex : "http://kkiapay.me"
theme: String, // Ex : "#222F5A"
countries: List<String>, // Ex : ["CI","BJ"]
partnerId: String, // Ex : 'AxXxXXxId'
paymentMethods: List<String> // Ex : ["momo","card"]
);Create payment webview instance
Mobile:
Web:
Example
Reference
phone
String
Yes
Valid mobile money number to debit. ex : 22967434270
amount
Numeric
Yes
Amount to debit from user account (XOF)
name
String
No
Client firstname and lastname
partnerId
String
No
Your id to find transaction
countries
List of String
No
Set widget countries ex: ["CI"]
paymentMethods
List of String
No
Set widget payment methods ex: ["momo","card"]
theme
String
No
the hexadecimal code of the color you want to give to your widget
apikey
String
Yes
public api key
sandbox
Boolean
No
The true value of this attribute allows you to switch to test mode
successCallback
Function
Yes
This function is called once the payment has been successfully made
Last updated
Was this helpful?