我已经使用 PHP 集成了 ccavenue 支付网关。它在安全 url 上运行良好,但在 ccavenue 的测试 url 上不起作用。所以我找不到测试我的集成的方法。我使用了 ccavenue 官方网站上提供的工具包。但它会导致问题。下面是发布所有用户数据的请求页面的代码,然后请求发送到 ccavenue。有人请帮我解决这个问题。提前致谢。
<html>
<head>
<title> Custom Form Kit </title>
</head>
<body>
<center>
<?php
$merchant_data='';
$working_key='*************';//Shared by CCAVENUES
$access_code='******************';//Shared by CCAVENUES
foreach ($_POST as $key => $value){
$merchant_data.=$key.'='.urlencode($value).'&';
}
$encrypted_data=encrypt($merchant_data,$working_key); // Method for encrypting the data.
?>
<form method="post" name="redirect" action="https://test.ccavenue.com/transaction/transaction.do?command=initiateTransaction">
<?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>