Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.219.12.88
function makepayment(appno, funivcode) {
$.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
url: $host_url + "masbankdet",
data: "appno=" + appno,
success: function (responce) {
responce = eval("(" + responce + ")");
$.unblockUI();
if (responce.error_code == "-1") {
var table = `<center>
<b><span id="app_msg"></span></b><br><br>
<button style="font-size: 16px;font-weight: 600;" id="paytmBtn" type="button" class="btn btn-success waves-effect btn-lg"
onclick = "PrintApplicationFormNETBANKING('${appno}')">Print Application</button>
</center>`;
$("#bankdet").show();
$("#bankdet").html(table);
} else {
if (responce.error_code == 0) {
var button = "";
$.blockUI({
message: "<img src='../img/Loading_icon.gif' border='0'>",
});
$.ajax({
type: "POST",
async: false,
data: "appno=" + appno + "&funivcode=" + funivcode,
url: "../razorpay/pay.php",
success: function (responce) {
$.unblockUI();
button = responce;
},
});
var table = `<table class="payment" width = "60%" border = "1" cellspacing="0" cellpadding="5" style = "margin:1% auto;">
<thead>
<th style = "text-align: center;width = 20%;">
Logo
</th>
<th style = "text-align: center;width = 20%;" >
Action
</th>
</thead>
<tbody>`;
var masbank = responce.data["masbank"];
for (var i = 0; i < masbank.length; i++) {
if (
masbank[i]["fbank"] == "razorpay" ||
masbank[i]["fbank"] == "paytm"
) {
table += `<tr>
<td width = "12%;" style = "text-align: center;">
<img height="60" width="150" src = "../${masbank[i]["fbanklog"]}" />
</td>`;
if (masbank[i]["fbank"] == "razorpay") {
table += `<td width = "20%;">
<center>${button}</center>
</td>`;
} else {
table += `<td width = "20%;" >
<center><span class="button" onclick="makepaymentdet('${masbank[i]["fbank"]}','${appno}','${masbank[i]["funivcode"]}')">Make Payment</span></center>
</td>
</tr>`;
}
}
}
$("#bankdet").show();
$("#bankdet").html(table);
return;
}
}
},
});
}
function makepaymentdet(payment, id, funivcode) {
if (payment == "paytm")
window.location.href =
"../Paytm/pgRedirect.php?productinfo=" + id + "&funivcode=" + funivcode;
if (payment == "axis")
window.location.href =
"axis/sampleEasyPay.php?productinfo=" + id + "&funivcode=" + funivcode;
if (payment == "hdfc") {
window.location.href =
"hdfc/ccavRequestHandler.php?productinfo=" +
id +
"&funivcode=" +
funivcode;
}
}
function PrintApplicationFormNETBANKING(appno) {
window.location.href = $host_url + "applicationFormPGReport&appno=" + appno;
}
|