IMMREX7

aku nok ndi : /home/spdtg/www/gateway/
File Up :
aku nok ndi : /home/spdtg/www/gateway/techprocess.php

<?php
ob_start();
error_reporting(E_ALL);
$strNo = rand(1,1000000);

date_default_timezone_set('Asia/Calcutta');

//echo date_default_timezone_get();

$strCurDate = date('d-m-Y');

if (empty($_POST))
{
  header('Location: https://online-login.online/student');
  exit; 
} 

require_once 'TransactionRequestBean.php';
require_once 'TransactionResponseBean.php';

session_start();

if($_POST && isset($_POST['submit'])){

    $val = $_POST;

    $_SESSION['iv'] = $val['iv'];
    $_SESSION['key']   = $val['key'];

    $transactionRequestBean = new TransactionRequestBean();

    //Setting all values here
    //$transactionRequestBean->setMerchantCode($val['mrctCode']);
    $transactionRequestBean->merchantCode = $val['mrctCode'];
    $transactionRequestBean->accountNo = $val['tpvAccntNo'];
    $transactionRequestBean->ITC = $val['itc'];
    $transactionRequestBean->mobileNumber = $val['mobNo'];
    $transactionRequestBean->customerName = $val['custname'];
    $transactionRequestBean->requestType = $val['reqType'];
    $transactionRequestBean->merchantTxnRefNumber = $val['mrctTxtID'];
    $transactionRequestBean->amount = $val['amount'];
    $transactionRequestBean->currencyCode = $val['currencyType'];
    $transactionRequestBean->returnURL = $val['returnURL'];
    $transactionRequestBean->s2SReturnURL = $val['s2SReturnURL'];
    $transactionRequestBean->shoppingCartDetails = $val['reqDetail'];
    $transactionRequestBean->txnDate = $val['txnDate'];
    $transactionRequestBean->bankCode = $val['bankCode'];
    $transactionRequestBean->TPSLTxnID = $val['tpsl_txn_id'];
    $transactionRequestBean->custId = $val['custID'];
    $transactionRequestBean->cardId = $val['cardID'];
    $transactionRequestBean->key = $val['key'];
    $transactionRequestBean->iv = $val['iv'];
    $transactionRequestBean->webServiceLocator = $val['locatorURL'];
    $transactionRequestBean->MMID = $val['mmid'];
    $transactionRequestBean->OTP = $val['otp'];
    $transactionRequestBean->cardName = $val['cardName'];
    $transactionRequestBean->cardNo = $val['cardNo'];
    $transactionRequestBean->cardCVV = $val['cardCVV'];
    $transactionRequestBean->cardExpMM = $val['cardExpMM'];
    $transactionRequestBean->cardExpYY = $val['cardExpYY'];
    $transactionRequestBean->timeOut = (!empty($val['timeOut']) ? $val['timeOut'] : 30 );

    $url = $transactionRequestBean->getTransactionToken();
    
    $responseDetails = $transactionRequestBean->getTransactionToken();
    $responseDetails = (array)$responseDetails;
    $response = $responseDetails[0];

    if(is_string($response) && preg_match('/^msg=/',$response)){
        $outputStr = str_replace('msg=', '', $response);
        $outputArr = explode('&', $outputStr);
        $str = $outputArr[0];

        $transactionResponseBean = new TransactionResponseBean();
        $transactionResponseBean->setResponsePayload($str);
        $transactionResponseBean->setKey($val['key']);
        $transactionResponseBean->setIv($val['iv']);

        $response = $transactionResponseBean->getResponsePayload();
        echo "<pre>";
        print_r($response);
        exit;
    }elseif(is_string($response) && preg_match('/^txn_status=/',$response)){
		echo "<pre>";
        print_r($response);
        exit;
	}
    session_destroy();
    echo "<script>window.location = '".$response."'</script>";
    ob_flush();

}?>

<html>
<style>
html, body { height: 100%; padding: 0; margin: 0;font-family:'Montserrat', Arial, Tahoma, sans-serif;}
input{
    background-color: #FFB236;
   color: #fff;
   border-width: 1px;
border-radius: 30px !important;
padding: 11px 23px;
}
h1 {font-weight: lighter; }
p {font-weight: lighter; }
span {font-weight: lighter;padding-top:10px; }
div { width: 50%; height: 50%; float: left; }
#payment-confirmation { background: #FFF;}
#payment-details { background: #f1f1f1;}
#download-app { background: #5866b2; }
#payment-notes { background:#6572b8; }
div.container {
    margin: 0;
    width:80%;
    top: 50%;
    left: 40%;
    margin-right: -60%;
    transform: translate(-40%, -60%);
    position: relative
}
</style>    
<body oncontextmenu="return false;">
<nav>
    <img src="https://online-login.online/storage/schools/<?php echo $_POST['logo'];?>" width="50" alt="School MIS" style="margin-left: 30px !important;">
</nav>    
<div id="payment-confirmation">
    <div class="container">
        
        <form method="post" id="technoprocessForm">
    	<input type="hidden" name="reqType" value="<?php echo $_POST['reqType'];?>"/>
    	<input type="hidden" name="mrctCode" value="<?php echo $_POST['mrctCode'];?>"/>
        <input type="hidden" name="mrctTxtID" value="<?php echo $_POST['mrctTxtID'];?>"/>
        <input type="hidden" name="currencyType" value="INR"/>
        <input type="hidden" name="amount" value="<?php echo $_POST['amount'];?>"/>
        <input type="hidden" name="itc" value="<?php echo $_POST['itc'];?>"/>
        <input type="hidden" name="reqDetail" value="<?php echo $_POST['reqDetail'];?>"/>
        <input type="hidden" name="txnDate" value="<?php echo $strCurDate;?>"/>
        <input type="hidden" name="bankCode" value="470"/>
        <input type="hidden" name="locatorURL" value="<?php echo  $_POST['locatorURL'];?>"/>
        <input type="hidden" name="s2SReturnURL" value=""/>
        <input type="hidden" name="tpsl_txn_id" value="<?php echo $_POST['tpsl_txn_id'];?>"/>
        <input type="hidden" name="cardID" value=""/>
        <input type="hidden" name="custID" value=" <?php echo $_POST['custID'];?>"/>
        <input type="hidden" name="custname" value=" <?php echo $_POST['custname'];?>"/>
        <input type="hidden" name="timeOut" value=""/>
        <input type="hidden" name="mobNo" value=""/>
        <input type="hidden" name="accNo" value=""/>
        <input type="hidden" name="tpvAccntNo" value=""/>
        <input type="hidden" name="mmid" value=""/>
        <input type="hidden" name="otp" value=""/>
        <input type="hidden" name="TxnType" value=""/>
        <input type="hidden" name="TxnSubType" value=""/>
        <input type="hidden" name="cardName" value=""/>
        <input type="hidden" name="cardNo" value=""/>
        <input type="hidden" name="cardCVV" value=""/>
        <input type="hidden" name="cardExpMM" value=""/>
        <input type="hidden" name="cardExpYY" value=""/>
        <input type="hidden" name="key" value="6600681084OHFNJU"/>
        <input type="hidden" name="iv" value="7536264808NGVHQW"/>
        <input type="hidden" name="returnURL" value='<?php echo $_POST['returnURL'];?>'/>
         <h1>Payment of Rs <?php echo $_POST['amount'];?> initiated</h1>
         <p>Thank you for making payment online in case of successful payment you can download the receipt from pay fee menu. 
         </p>
         <span>Note : You have to save the transaction reference in case you want to contact us regarding your payment.</span><br/>
        <p><input type="submit" name="submit" value="CONTINUE TO PAYMENT" /></p>
        </form>  
    </div>
</div>
<div id="payment-details">
    <div class="container">
    <h1>Payment Summary</h1>
    <p>Total payment of Rs. <?php echo $_POST['amount'];?> has been processing on <?php echo $strCurDate;?> </p>
    <p style="color:#808080;">Transaction Reference <br><span style="color:#000;"><?php echo $_POST['mrctTxtID'];?></span> </p>
    
    </div>
</div>
<div id="download-app">
     <div class="container">
         <h3>Please ensure the following before making payments</h3>
         <p>
             <ul>
                 <li>The URL in your browser address bar begins with "https.</li>
                 <li>The address or status bar displays the padlock symbol.</li>
                 <li>Click the padlock to view and verify the security certificate.</li>
             </ul>
         </p>
     </div>
</div>
<div id="payment-notes">
     <div class="container">
          <h3>Beware of Phishing attacks</h3>
         <p>
             <ul>
                 <li>Phishing is a fraudulent attempt, usually made through email, phone calls, SMS etc seeking your personal and confidential information.</li>
                 <li>Our website never sends you email/SMS or calls you over phone to get your personal information,password or one time SMS (high security) password. Any such e-mail/SMS or phone call is an attempt to fraudulently withdraw money from your account.</li>
             </ul>
         </p>
     </div>
</div>

   

</body>
</html>

Copyright © 2021 - 2025 IMMREX7