comet_payone

Creator: coderz1093

Last updated:

0 purchases

comet_payone Image
comet_payone Images

Languages

Categories

Add to Cart

Description:

comet payone

comet_payone #


Comet payone for Flutter package to connect to bcel, developed by comet.
The package will generate qrcode for payment and tracking transaction status.
Installation #
add the following code to your pubspec.yaml :
dependencies:
comet_payone: ^2.0.0
copied to clipboard
Usage #
import the package
import 'package:flutter_payone/constants.dart';
import 'package:flutter_payone/flutter_payone.dart';
copied to clipboard
Register your shop with mcid and subcribeKey which will be granted by BCEL
Future<String> initStore() async {
String mcid = "mch6066c3a96b789";
String applicationId = "ONEPAY";
String bankName = "BCEL";
Country country = Country.lao;
Province province = Province.vientiane;
String subscribeKey = "sub-c-91489692-fa26-11e9-be22-ea7c5aada356";
String terminalid = "12345678";

return await FlutterPayone.initStore(mcid, province,
subscribeKey, terminalid, country, bankName, applicationId);
}
copied to clipboard
Generate QR Code, example: amount = 1 and LAK currency. You also can add a description to the QR Code which will accept string value.
Future<String> buildQrcode() async {
int amount = 1;
Currency currency = Currency.laoKip;
String description = "";
return await FlutterPayone.buildQrcode(amount, currency, description);
}
copied to clipboard
Now you can start tracking transaction, expect transaction response are customer name, paid amount, etc.
Future<String> startObserve() async {
return await FlutterPayone.startObserve();
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.