getJSBioOTPPay static method

String getJSBioOTPPay(
  1. BioPayload payload,
  2. String otp,
  3. String cardQuota
)

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() +
      "})";
}