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.127.59
function Callfundtransfer()
{
$("#page_main_div").load('html_modules/collfundtransfer.html',function()
{
document.getElementById('display_module_name').innerHTML = 'Fund Transfer';
document.getElementById('module_name_for_save').value = 'Fund Transfer';
getDefaultHeadFooterLinks('Fund Transfer');
});
}
function getcollbankdet()
{
var famount = $('#famount').val();
var fremarks = $('#fremarks').val();
if(famount == '')
{
alert('Enter the Amount');
$('#famount').val('');
return;
}
if(fremarks == '')
{
alert('Enter the Remarks');
$('#fremarks').val('');
return;
}
var datastring = "&famount="+famount+"&fremarks="+fremarks;
$.ajax({
type: "POST",
data:datastring,
url:$host_url+'updatecollfunddet',
success: function(responce)
{
responce = eval('(' + responce + ')');
if(responce.error_code==0)
{
var button = '';
$.ajax({
type: "POST",
async:false,
data:"appno="+responce.data.appno+"&funivcode="+'041',
url:"razorpay/pay.php",
success: function(responce)
{
button = responce;
}
});
/*<tr>
<td width = "12%;" style = "text-align: center;">
<img height="60" width="100" src = "img/paytm.jpg" />
</td>
<td width = "40%;" >
Debit Cards 0.9%(txn >=2000) per transaction <br>
Credit Cards 1% per transaction <br>
Net Banking Rs. 10 per transaction <br>
Paytm Wallet 1.2% per transaction <br>
UPI 0.65%(txn >=2000) per transaction.
</td>
<td width = "20%;" >
<span class="button" onclick="makepayment('paytm','${responce.data}')">Make Payment</span>
</td>
</tr>*/
/*<th style = "text-align: center;">
Charges
</th>*/
var table = `<table class="payment" width = "60%" cellspacing="0" border = "1" 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'];
console.log(masbank);
for(var i=0;i<masbank.length;i++)
{
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="makepayment('${masbank[i]['fbank']}','${responce.data.appno}','${masbank[i]['funivcode']}')">Make Payment</span></center>
</td>
</tr>`;
}
}
console.log(table);
/*var table = `<table class="payment" width = "70%" cellspacing="0" cellpadding="5" style = "margin:1% auto;">
<thead>
<th style = "text-align: center;">
Logo
</th>
<th style = "text-align: center;">
Charges
</th>
<th style = "text-align: center;">
Action
</th>
</thead>
<tbody>
<tr>
<td width = "12%;" style = "text-align: center;">
<img height="60" width="100" src = "img/paytm.jpg" />
</td>
<td width = "40%;" >
Debit Cards 0.9%(txn >=2000) per transaction <br>
Credit Cards 1% per transaction <br>
Net Banking Rs. 10 per transaction <br>
Paytm Wallet 1.2% per transaction <br>
UPI 0.65%(txn >=2000) per transaction.
</td>
<td width = "20%;" >
<span class="button" onclick="makepayment('paytm','${responce.data['appno']}')">Make Payment</span>
</td>
</tr>
<tr>
<td width = "12%;" style = "text-align: center;">
<img height="60" width="100" src = "img/razorpay.jpg" />
</td>
<td width = "40%;" >
Debit Cards 0%(txn < 2000) per transaction <br>
Credit Cards 0.9% per transaction <br>
Net Banking Rs. 10 per transaction <br>
All Wallet availabel 1.65% per transaction <br>
UPI 12 per transaction (For any amount).
</td>
<td>
${button}
</td>
</tr>
</tbody>
</table>`;*/
$('#bankdet').show();
$('#bankdet').html(table);
return;
}
else if(responce.error_code==-2)
{
alert(responce.data);
return;
}
else
{
alert('Login again and enter');
return;
}
}
});
}
function makepayment(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;
}
|