cash_gl_plugin 1.0.5 cash_gl_plugin: ^1.0.5 copied to clipboard
A Flutter plugin for cash_gl including payment and other tools with android, created by Chongyu Yuan.
1. Add to pubspec.yaml #
dependencies:
....cash_gl_plugin: ^1.0.4
2. Install #
flutter pub get
3. Import #
import 'package:cash_gl_plugin/cash_gl_plugin.dart';
4. Usage #
PayWithMpurseResult result = await new CashGlPlugin().payWithMpurse(amount, txnId, mpQueryId, partnerId, createTime, payerVa); print('result.resultCode: ${result.resultCode}');
LivenessResult result = await new CashGlPlugin().liveness(); print('LivenessResult: $result');
String tokenResult = await new CashGlPlugin().reCaptcha(CAPTCHA_SITE_KEY); print('tokenResult: $tokenResult');