getJSBioOTPPay static method
Implementation
static String getJSBioOTPPay(BioPayload payload, String otp, String cardQuota) {
// var token = payload.userToken ?? "";
payload.authenticateType = "otp";
payload.token = otp;
// if(payload.price! >= 50000) {
// payload.extra ??= BootExtra();
// payload.extra?.cardQuota = cardQuota;
// }
payload.extra ??= BioExtra();
payload.extra?.cardQuota = cardQuota;
payload.easyType = "easy_subscribe";
return "BootpaySDK.requestWalletPayment(" +
payload.toStringEasyPay() +
")" +
".then( function (data) {" +
easySuccess() +
"}, function (data) {" +
cancel() +
easyError() +
"})";
}