Uname:
Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software:
Apache
PHP version:
8.3.32 [ PHP INFO ] PHP os:
Linux
Server Ip:
163.227.92.254
Your Ip:
216.73.217.24
User:
gutlooks (1003) | Group:
gutlooks (1005)
Safe Mode:
OFF
Disable Function:
exec,passthru,shell_exec,system
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<?php
// echo "<pre>";
// echo "</pre>";
$secretkey = "cfsk_ma_prod_9c6b360cd80259b118097cf3bd796e94_1747c468";
$orderId = $_POST["orderId"];
$orderAmount = $_POST["orderAmount"];
$referenceId = $_POST["referenceId"];
$txStatus = $_POST["txStatus"];
$paymentMode = $_POST["paymentMode"];
$txMsg = $_POST["txMsg"];
$txTime = $_POST["txTime"];
$signature = $_POST["signature"];
$data = $orderId.$orderAmount.$referenceId.$txStatus.$paymentMode.$txMsg.$txTime;
$hash_hmac = hash_hmac('sha256', $data, $secretkey, true) ;
$computedSignature = base64_encode($hash_hmac);
if ($signature == $computedSignature) {
if($txStatus=='SUCCESS'){
// ==========================
$this->db->where('pay_transaction_id','');
// $this->db->where('pay_status','');
$this->db->where('invoice_no','');
$this->db->where('order_no',$orderId);
$query =$this->db->get('tb_order');
if($query->num_rows()>0){
$user_id = $query->row()->user_id;
$user_mobile = $query->row()->mobile;
$logs = json_encode($_POST);
$data = array('pay_status'=>$_POST['txStatus'],'pay_transaction_id'=>$_POST['referenceId'],'pay_logs'=>$logs);
$this->db->where('pay_transaction_id','');
// $this->db->where('pay_status','');
$this->db->where('invoice_no','');
$this->db->where('order_no',$_POST['ORDERID']);
$this->db->update('tb_order',$data);
}else{
}
// =======================
}
?>
<div class="container">
<div class="panel panel-success">
<div class="panel-heading">Signature Verification Successful</div>
<div class="panel-body">
<!-- <div class="container"> -->
<table class="table table-hover">
<tbody>
<tr>
<td>Order ID</td>
<td><?php echo $orderId; ?></td>
</tr>
<tr>
<td>Order Amount</td>
<td><?php echo $orderAmount; ?></td>
</tr>
<tr>
<td>Reference ID</td>
<td><?php echo $referenceId; ?></td>
</tr>
<tr>
<td>Transaction Status</td>
<td><?php echo $txStatus; ?></td>
</tr>
<tr>
<td>Payment Mode </td>
<td><?php echo $paymentMode; ?></td>
</tr>
<tr>
<td>Message</td>
<td><?php echo $txMsg; ?></td>
</tr>
<tr>
<td>Transaction Time</td>
<td><?php echo $txTime; ?></td>
</tr>
</tbody>
</table>
<!-- </div> -->
</div>
</div>
</div>
<?php
}
else {
?>
<div class="container">
<div class="panel panel-danger">
<div class="panel-heading">Signature Verification failed</div>
<div class="panel-body">
<!-- <div class="container"> -->
<table class="table table-hover">
<tbody>
<tr>
<td>Order ID</td>
<td><?php echo $orderId; ?></td>
</tr>
<tr>
<td>Order Amount</td>
<td><?php echo $orderAmount; ?></td>
</tr>
<tr>
<td>Reference ID</td>
<td><?php echo $referenceId; ?></td>
</tr>
<tr>
<td>Transaction Status</td>
<td><?php echo $txStatus; ?></td>
</tr>
<tr>
<td>Payment Mode </td>
<td><?php echo $paymentMode; ?></td>
</tr>
<tr>
<td>Message</td>
<td><?php echo $txMsg; ?></td>
</tr>
<tr>
<td>Transaction Time</td>
<td><?php echo $txTime; ?></td>
</tr>
</tbody>
</table>
<!-- </div> -->
</div>
</div>
</div>
<?php
}
?>
</body>
</html>