requestBioForPay method
dynamic
requestBioForPay()
Implementation
requestBioForPay() async {
// isProgressShow
updateProgressShow(true);
final prefs = await SharedPreferences.getInstance();
String secretKey = prefs.getString("biometric_secret_key") ?? '';
int serverUnixTime = widget.c.resWallet.value.biometric?.server_unixtime ?? 0;
// BootpayPrint("key: $secretKey, time: $serverUnixTime, otp: ${widget.c.otp}, ${widget.c.isShowWebView.value}");
if(widget.c.isShowWebView.value == true) {
widget.c.requestBioForPay(getOTPValue(secretKey, serverUnixTime));
} else {
widget.c.requestBioForPay(getOTPValue(secretKey, serverUnixTime), doWorkNow: false);
showWebView(isShowWebViewHalf: true);
}
}