3
我爲我的購物網站使用cc avenue支付網關 我已經整合了Non-Seamless方法進行支付,它的工作狀態很好,當我去付款但重定向後我每次都得到這個錯誤時間cc核心php中的avenue支付網關集成錯誤
security error. illegal access detected
但交易成功後ccavenue重定向到我的網頁重定向當時我得到的錯誤與一些數據不可讀格式
這是我填的信息文件
<html>
<head>
<script>
\t window.onload = function() {
\t \t var d = new Date().getTime();
\t \t document.getElementById("tid").value = d;
\t };
</script>
</head>
<body>
\t <form method="post" name="customerData" action="ccavRequestHandler.php">
\t \t <table width="40%" height="100" border='1' align="center"><caption><font size="4" color="blue"><b>Integration Kit</b></font></caption></table>
\t \t \t <table width="40%" height="100" border='1' align="center">
\t \t \t \t <tr>
\t \t \t \t \t <td>Parameter Name:</td><td>Parameter Value:</td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td colspan="2"> Compulsory information</td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>TID \t :</td><td><input type="text" name="tid" id="tid" readonly /></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Merchant Id \t :</td><td><input type="text" name="merchant_id" value="my_merchant id"/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Order Id \t :</td><td><input type="text" name="order_id" value="<?php echo $_REQUEST['order_id']; ?>"/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Amount \t :</td><td><input type="text" name="amount" value="1.00"/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Currency \t :</td><td><input type="text" name="currency" value="INR"/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
<td>Redirect URL \t :</td><td>
<input type="text" name="redirect_url" value="http://cakemyday.in/payment/CCA/ccavResponseHandler.php"/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Cancel URL \t :</td><td>
<input type="text" name="cancel_url" value="http://cakemyday.in/payment/CCA/ccavResponseHandler.php"/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Language \t :</td><td><input type="text" name="language" value="EN"/></td>
\t \t \t \t </tr>
\t \t \t <tr>
\t \t \t \t <td colspan="2">Billing information(optional):</td>
\t \t \t </tr>
\t \t <tr>
\t \t \t <td>Billing Name \t :</td><td><input type="text" name="billing_name" value="Charli"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Billing Address \t :</td><td><input type="text" name="billing_address" value="Room no 1101, near Railway station Ambad"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Billing City \t :</td><td><input type="text" name="billing_city" value="Indore"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Billing State \t :</td><td><input type="text" name="billing_state" value="MP"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Billing Zip \t :</td><td><input type="text" name="billing_zip" value="425001"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Billing Country \t :</td><td><input type="text" name="billing_country" value="India"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Billing Tel \t :</td><td><input type="text" name="billing_tel" value=""/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Billing Email \t :</td><td><input type="text" name="billing_email" value="[email protected]"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td colspan="2">Shipping information(optional)</td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Shipping Name \t :</td><td><input type="text" name="delivery_name" value="Chaplin"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Shipping Address \t :</td><td><input type="text" name="delivery_address" value="room no.701 near bus stand"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>shipping City \t :</td><td><input type="text" name="delivery_city" value="Hyderabad"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>shipping State \t :</td><td><input type="text" name="delivery_state" value="Andhra"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>shipping Zip \t :</td><td><input type="text" name="delivery_zip" value="425001"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>shipping Country \t :</td><td><input type="text" name="delivery_country" value="India"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Shipping Tel \t :</td><td><input type="text" name="delivery_tel" value=""/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Merchant Param1 \t :</td><td><input type="text" name="merchant_param1" value="<?php echo $_REQUEST['order_cake_id']; ?>"/></td>
\t \t </tr>
\t \t <tr>
\t \t \t <td>Merchant Param2 \t :</td><td><input type="text" name="merchant_param2" value="additional Info."/></td>
\t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Merchant Param3 \t :</td><td><input type="text" name="merchant_param3" value="additional Info."/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Merchant Param4 \t :</td><td><input type="text" name="merchant_param4" value="additional Info."/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Merchant Param5 \t :</td><td><input type="text" name="merchant_param5" value="additional Info."/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Promo Code \t :</td><td><input type="text" name="promo_code" value=""/></td>
\t \t \t \t </tr>
\t \t \t \t <tr>
\t \t \t \t \t <td>Vault Info. \t :</td><td><input type="text" name="customer_identifier" value=""/></td>
\t \t \t \t </tr>
\t \t <tr>
\t \t \t <td></td><td><INPUT TYPE="submit" value="CheckOut"></td>
\t \t </tr>
\t \t </table>
\t </form>
\t </body>
</html>
這是我的請求處理程序文件中的代碼
<html>
<head>
<title> Non-Seamless-kit</title>
</head>
<body>
<center>
<?php include('Crypto.php')?>
<?php
\t error_reporting(0);
\t
\t $merchant_data='mykey';
\t $working_key='my working key';//Shared by CCAVENUES
\t $access_code='my access code';//Shared by CCAVENUES
\t
\t
\t foreach ($_POST as $key => $value){
\t \t $merchant_data.=$key.'='.$value.'&';
\t }
\t $encrypted_data=encrypt($merchant_data,$working_key); // Method for encrypting the data.
?>
<form method="post" name="redirect" action="https://world.ccavenue.com/servlet/ccw.CCAvenueController">
<?php
echo "<input type=hidden name=encRequest value=$encrypted_data>";
echo "<input type=hidden name=access_code value=$access_code>";
?>
</form>
</center>
<script language='javascript'>document.redirect.submit();</script>
</body>
</html>
那麼,我錯了,與此代碼,請幫助我
感謝
請檢查您的響應處理程序文件workingkey – ayush
感謝兄弟現在它的工作 –