requestBioForPay method

Future<void> requestBioForPay(
  1. BioPayload payload,
  2. String otp,
  3. int type, {
  4. String? cardQuota,
  5. 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;

  }
}