在ec2 linux实例上,新的api请求处理程序在php中没有响应
签出URL后,我将使用以下代码在ccavRequestHandler.php上重定向。有一次我在结帐后重定向,它显示空白的白色页面。 在cc avenue设置页面中,使用工作键、访问代码激活站点的URL。但我仍然无法解决这个问题。请提供更好的解决方案在ec2 linux实例上,新的api请求处理程序在php中没有响应,php,amazon-ec2,payment-gateway,ccavenue,Php,Amazon Ec2,Payment Gateway,Ccavenue,签出URL后,我将使用以下代码在ccavRequestHandler.php上重定向。有一次我在结帐后重定向,它显示空白的白色页面。 在cc avenue设置页面中,使用工作键、访问代码激活站点的URL。但我仍然无法解决这个问题。请提供更好的解决方案 <html> <head> <title> Custom Form Kit </title> </head> <body> &l
<html>
<head>
<title> Custom Form Kit </title>
</head>
<body>
<center>
<?php include('Crypto.php')?>
<?php
error_reporting(0);
$merchant_data='';
$merchant_id=$_POST['merchant_id'];
$order_id=$_POST['order_id'];
$amount=$_POST['amount'];
$currency=$_POST['currency'];
$redirect_url=$_POST['redirect_url'];
$cancel_url=$_POST['cancel_url'];
$language=$_POST['language'];
$working_key='123abc';//here i have entered cc avenue provided key
$access_code='WERT7CVN';//here i have entered cc avenue access code
$merchant_data='merchant_id='.$merchant_id.'&order_id='.$order_id.
'&amount='.$amount.'¤cy='.$currency.
'&redirect_url='.$redirect_url.'&cancel_url='.$cancel_url.
'&language='.$language;
foreach ($merchant_data 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://secure.ccavenue.com/transaction/transaction.do?command=initiateTransaction">
<?php
echo "<input type=hidden name=encRequest value=$command>";
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>
要在ec2上运行cc avenue,您需要安装支持mcrypt的bellow扩展
安装步骤
1使用用户登录ssh,例如ec2用户可能是另一个用户,根据您的图像
2运行命令以根用户身份登录命令:-sudo-s
3使用以下命令安装mcrypt:-yum安装php mcrypt
4重新启动appache。要在ec2上运行cc avenue,您需要安装bellow扩展将支持mcrypt
安装步骤
1使用用户登录ssh,例如ec2用户可能是另一个用户,根据您的图像
2运行命令以根用户身份登录命令:-sudo-s
3使用以下命令安装mcrypt:-yum安装php mcrypt
4重新启动appache。能否提供实时站点的url。这将有助于调试。你能提供实时站点的url吗。这将有助于调试。