Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ynormeco
/
.trash
/
ynorme.in
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ynormeco/.trash/ynorme.in/postpayment.php
<?php session_start(); session_save_path("./"); //path on your server where you are storing session //file which has required functions require("functions.php"); ?> <html> <head><title>Post Payment</title></head> <body bgcolor="white" onLoad="submitPayuForm()"> <br><br><br> <p align="center"> <img src="https://www.ynorme.com/images/logo.png" > </p> <p align="center"> <img src="SkinnySeveralAsianlion.gif" width="50px;"> </p> <font size=4> <script> var hash = '<?php echo $hash ?>'; function submitPayuForm() { var payuForm = document.forms.f1; payuForm.submit(); } </script> <?php $key = "jP13oLf2l0uLupcrmObaIFHCXf7da2nq"; //replace ur 32 bit secure key , Get your secure key from your Reseller Control panel $redirectUrl = $_SESSION['redirecturl']; // redirectUrl received from foundation $transId = $_SESSION['transid']; //Pass the same transid which was passsed to your Gateway URL at the beginning of the transaction. $sellingCurrencyAmount = $_SESSION['sellingcurrencyamount']; $accountingCurrencyAmount = $_SESSION['accountingcurencyamount']; $status = $_REQUEST["status"]; // Transaction status received from your Payment Gateway //This can be either 'Y' or 'N'. A 'Y' signifies that the Transaction went through SUCCESSFULLY and that the amount has been collected. //An 'N' on the other hand, signifies that the Transaction FAILED. /**HERE YOU HAVE TO VERIFY THAT THE STATUS PASSED FROM YOUR PAYMENT GATEWAY IS VALID. * And it has not been tampered with. The data has not been changed since it can * easily be done with HTTP request. * **/ srand((double)microtime()*1000000); $rkey = rand(); $checksum =generateChecksum($transId,$sellingCurrencyAmount,$accountingCurrencyAmount,$status, $rkey,$key); ?> <form name="f1" action="<?php echo $redirectUrl;?>"> <input type="hidden" name="transid" value="<?php echo $transId;?>"> <input type="hidden" name="status" value="<?php echo $status;?>"> <input type="hidden" name="rkey" value="<?php echo $rkey;?>"> <input type="hidden" name="checksum" value="<?php echo $checksum;?>"> <input type="hidden" name="sellingamount" value="<?php echo $sellingCurrencyAmount;?>"> <input type="hidden" name="accountingamount" value="<?php echo $accountingCurrencyAmount;?>"> </form> </font> </body> </html>