requestBioForPay method
Future<void>
requestBioForPay(
- BioPayload payload,
- String otp,
- int type, {
- String? cardQuota,
- bool? doWorkNow = true,
Implementation
Future<void> requestBioForPay(BioPayload payload, String otp, int type, {String? cardQuota, bool? doWorkNow = true}) async {
this.payload = payload;
requestType = type;
String script = await BioConstants.getJSBioOTPPay(payload, otp, cardQuota ?? "0");
// BootpayPrint("requestBioForPay : $script");
updateProgressShow(true);
if(doWorkNow == true) {
webView?.controller?.runJavaScript(
callJavascriptAsync(script)
);
// webView?.controller?.future.then((controller) {
// controller.runJavascript(
// callJavascriptAsync(script)
// );
// });
} else {
webView?.startScript = script;
}
}