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