|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.52 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /home/u490972518/domains/sssaup.com/public_html/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
include 'Authentication.php';
include('link/database.php');
$encData=null;
$clientCode='SMGOE';
$username='bhabesh.jha_5965';
$password='SMGOE_SP5965';
$authKey='GuqOerkbhVFMpVU0';
$authIV='Y39GW7GDUeqDKBAy';
$payerName=$_POST['payerName'];
$student_registration=$_POST['registration_no'];
$payerEmail=$_POST['payerEmail'];
$payerMobile=$_POST['payerMobile'];
$payerAddress=$_POST['payerAddress'];
$sel="select * from student where registration_no='$student_registration' and status='' ";
$res=mysqli_query($con,$sel);
$row=mysqli_fetch_array($res,MYSQLI_BOTH);
$student_id=$row['id'];
$session=$row['session'];
$clientTxnId=$_POST['clientTxnId'];
$amount=$_POST['amount'];
$amountType='INR';
$mcc=5137;
$channelId='W';
$date=date("Y-m-d");
date_default_timezone_set("asia/kolkata");
$time=date("h:i:sa");
$datetime=$date." ".$time;
////insert in table///
if($row)
{
$ins="INSERT INTO `payment` (`id`, `student_registration`, `payerName`, `payerEmail`, `payerMobile`, `clientTxnId`, `payerAddress`, `amount`, `clientCode`, `paidAmount`, `paymentMode`, `bankName`, `amountType`, `status`, `sabpaisaTxnId`, `sabpaisaMessage`, `bankMessage`, `bankTxnId`, `transDate`, `date`, `time`, `student_id`, `session`, `area`) VALUES (NULL, '$student_registration', '$payerName', '$payerEmail', '$payerMobile', '$clientTxnId', '$payerAddress', '$amount', '$clientCode', '', '', '', '$amountType', 'No', '', '', '', '', '', '$date', '$time', '$student_id', '$session','Reg')";
if($res=mysqli_query($conn,$ins))
{
//echo 'insert';
}
else
{
//echo 'no';
}
$callbackUrl='https://sssaup.com/sabpaisa_responce.php';
$encData="?clientCode=".$clientCode."&transUserName=".$username."&transUserPassword=".$password."&amount=".$amount.
"&amountType=".$amountType."&clientTxnId=".$clientTxnId."&payerName=".$payerName."&payerMobile=".$payerMobile.
"&payerEmail=".$payerEmail."&mcc=".$mcc."&channelId=".$channelId."&callbackUrl=".$callbackUrl;
$AesCipher = new AesCipher();
$data = $AesCipher->encrypt($authKey, $authIV, $encData);
?>
<form action="https://securepay.sabpaisa.in/SabPaisa/sabPaisaInit?v=1"method="post" name="redirect">
<input type="hidden" name="encData" value="<?php echo $data?>" id="frm1">
<input type="hidden" name="clientCode" value ="<?php echo $clientCode?>" id="frm2">
</form>
<script language='javascript'>document.redirect.submit();</script>
<?php
}
else
{echo "<script>alert('Registration is Incorrect');window.location.href='reprint_form.php';</script>";}
?>