requestTotalPay method
Implementation
void requestTotalPay(BioPayload payload, int type, {bool? doWorkNow = true}) {
this.payload = payload;
requestType = type;
String script = BioConstants.getJSTotalPay(payload);
// BootpayPrint("requestTotalPay : $script");
updateProgressShow(true);
if(doWorkNow == true) {
webView?.controller?.runJavaScript(
callJavascriptAsync(script)
);
// webView?.controller?.future.then((controller) {
// controller.runJavascript(
// callJavascriptAsync(script)
// );
// });
} else {
webView?.startScript = script;
}
}