Index of /demo/uploads/SYS_CONFIG/riotsymlinkphp/requests_txt1360

 NameLast modifiedSizeDescription

 Parent Directory   -  
 requests.txt 2021-02-15 10:59 2.6K 

<!DOCTYPE html>
<html>
<head>
  <title>Cashfree - Signature Generator</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

</head>
<body onload="document.frm1.submit()">


<?php 
$mode = "PROD"; //<------------ Change to TEST for test server, PROD for production

extract($_POST);
  $secretKey = "7227fd9218c3333b40778b1969a3aca40b376cfa";
   $customerAddress = $_POST['customerAddress']; 
   $customerCity = $_POST['customerCity']; 
   $customerState = $_POST['customerState']; 
  $customerCountry = $_POST['customerCountry']; 
  $pan_number = $_POST['pan_number']; 
  $postData = array( 
  "appId" => $appId, 
  "orderId" => $orderId, 
  "orderAmount" => $orderAmount, 
  "orderCurrency" => $orderCurrency, 
  //"orderNote" => $orderNote, 
  "customerName" => $customerName, 
  "customerPhone" => $customerPhone, 
  "customerEmail" => $customerEmail,
  "returnUrl" => $returnUrl, 
  "notifyUrl" => $notifyUrl,
);
  setcookie("customerName",$customerName);
  setcookie("customerPhone",$customerPhone);
  setcookie("customerEmail",$customerEmail);
  setcookie("customerAddress",$customerAddress);
  setcookie("customerCity",$customerCity);
  setcookie("customerState",$customerState);
  setcookie("customerCountry",$customerCountry);
  setcookie("customer_pan_number",$pan_number);

ksort($postData);
$signatureData = "";
foreach ($postData as $key => $value){
    $signatureData .= $key.$value;
}
$signature = hash_hmac('sha256', $signatureData, $secretKey,true);
$signature = base64_encode($signature);

if ($mode == "PROD") {
  $url = "https://www.cashfree.com/checkout/post/submit";
} else {
  $url = "https://test.cashfree.com/billpay/checkout/post/submit";
}

?>
  <form action="<?php echo $url; ?>" name="frm1" method="post">
      <p>Please wait.......</p>
      <input type="hidden" name="signature" value='<?php echo $signature; ?>'/>
 
      <input type="hidden" name="orderCurrency" value='<?php echo $orderCurrency; ?>'/>
      <input type="hidden" name="customerName" value='<?php echo $customerName; ?>'/>
      <input type="hidden" name="customerEmail" value='<?php echo $customerEmail; ?>'/>
      <input type="hidden" name="customerPhone" value='<?php echo $customerPhone; ?>'/>
      <input type="hidden" name="orderAmount" value='<?php echo $orderAmount; ?>'/>
      <input type ="hidden" name="notifyUrl" value='<?php echo $notifyUrl; ?>'/>
      <input type ="hidden" name="returnUrl" value='<?php echo $returnUrl; ?>'/>
      <input type="hidden" name="appId" value='<?php echo $appId; ?>'/>
      <input type="hidden" name="orderId" value='<?php echo $orderId; ?>'/>
  </form>
</body>
</html>