requestPasswordForPay method
dynamic
requestPasswordForPay()
Implementation
requestPasswordForPay() async {
updateProgressShow(true);
// BootpayPrint('requestPasswordForPay : ${await isAblePasswordToken()}, ${widget.c.isShowWebView.value}');
if(!await isAblePasswordToken()) {
if(widget.c.isShowWebView.value == true) {
// widget.webView?.requestPasswordToken();
widget.c.requestPasswordToken(type: BioConstants.REQUEST_PASSWORD_TOKEN_FOR_PASSWORD_FOR_PAY);
} else {
showWebView();
widget.c.requestPasswordToken(type: BioConstants.REQUEST_PASSWORD_TOKEN_FOR_PASSWORD_FOR_PAY, doWorkNow: false);
}
return;
}
if(widget.c.isShowWebView.value == true) {
widget.c.requestPasswordForPay();
} else {
showWebView();
widget.c.requestPasswordForPay(doWorkNow: false);
}
// if(widget.c.isShowWebView.value == true) {
// // widget.webView?.requestPasswordToken();
// widget.c.requestPasswordToken(type: BioConstants.REQUEST_PASSWORD_TOKEN_FOR_PASSWORD_FOR_PAY);
// } else {
// widget.c.requestPasswordToken(type: BioConstants.REQUEST_PASSWORD_TOKEN_FOR_PASSWORD_FOR_PAY, doWorkNow: false);
// showWebView();
// }
}