0 &&
is_numeric($_POST['cust_Mobile']) &&
strlen($_POST['cust_Mobile'])==10 &&
filter_var($_POST['cust_Email'], FILTER_VALIDATE_EMAIL)
){
$token = strip_tags($_POST['token']);
$orderId = safe_str($_POST['orderId']);
$txnAmount = safe_str($_POST['txnAmount']);
$txnNote = safe_str($_POST['txnNote']);
$cust_Mobile = safe_str($_POST['cust_Mobile']);
$cust_Email= strip_tags($_POST['cust_Email']);
$callback_url = strip_tags($_POST['callback_url']);
$checksum = $_POST['checksum'];
$res = sql_query("SELECT * FROM tb_partner WHERE token='".$token."' AND status='active' ");
$result = sql_fetch_array($res);
$upiuid = strip_tags(get_paytm_business($result['id'],"upi_id"));
if(sql_num_rows($res)>0 && $result['token']==$token){
$txn_query = sql_query("SELECT * FROM tb_virtualtxn WHERE client_orderid='".$orderId."' ");
if(sql_num_rows($txn_query)=='' && sql_num_rows($query)==0){
$paramList = array();
$paramList["upiuid"] = $upiuid;
$paramList["token"] = $token;
$paramList["orderId"] = $orderId;
$paramList["txnAmount"] = $txnAmount;
$paramList["txnNote"] = $txnNote;
$paramList["cust_Mobile"] = $cust_Mobile;
$paramList["cust_Email"] = $cust_Email;
$paramList["callback_url"] = $callback_url;
require_once('../system/checksum.php');
$verifySignature = RechPayChecksum::verifySignature($paramList, $result['secret'], $checksum);
if($verifySignature){
$upi_id = get_paytm_business($result['id'],"upi_id");
$upi_name = get_paytm_business($result['id'],"upi_name");
if(isset($upi_id) && !empty($upi_id) && isset($upi_name) && !empty($upi_name) && $upiuid==$upi_id){
$txn_ref_id = GenRandomString().time();
$_SESSION['muid'] = $result['id'];
$_SESSION['auth_token'] = $result['token'];
$_SESSION['txn_ref_id'] = $txn_ref_id;
$_SESSION['upi_id'] = $upi_id;
$_SESSION['client_orderid'] = $orderId;
$_SESSION['txnAmount'] = $txnAmount;
$_SESSION["txnNote"] = $txnNote;
$_SESSION['cust_Mobile'] = $cust_Mobile;
$_SESSION['cust_Email'] = $cust_Email;
echo "";
$html = '
';
echo $html;
}else{
$html = '
Please do not refresh this page...
';
echo $html;
exit();
}
}else{
$html = '
Please do not refresh this page...
';
echo $html;
exit();
}
}else{
$html = '
Please do not refresh this page...
';
echo $html;
exit();
}
}else{
$html = '
Please do not refresh this page...
';
echo $html;
exit();
}
}else{
echo '
Parameter Missing
Redirect...
';
redirect($_POST['callback_url'],'2000');
exit();
}
}else{
echo '
Unauthorized Access
Redirect...
';
redirect(webdata('socket').base_url(),'2000');
exit();
}
?>
Secure Payment
Scan to pay ₹
🚀
Your transaction was successfully completed
>Pay ₹ using a UPI App
Valid until