CCavenues错误代码:10001无效请求

时间:2017-02-06 06:38:29

标签: php

我将ccavenues支付网关集成到客户端网站......

对于少数用户,付款会从其帐户中扣除,并重定向到成功页面。

对于少数其他付款被借记并在中间停止并出现错误哎呀:错误代码:10001无效请求 - 加密请求无效/不存在..(它未被重定向到成功页面..) 响应代码:

$workingKey='XXX';      //Working Key should be provided here.
$encResponse=$_POST["encResp"];         //This is the response sent by the CCAvenue Server
$rcvdString=decrypt($encResponse,$workingKey);      //Crypto Decryption used as per the specified working key.
$order_status="";
$decryptValues=explode('&', $rcvdString);
$dataSize=sizeof($decryptValues);
echo "<center>";

for($i = 0; $i < $dataSize; $i++) 
{
    $information=explode('=',$decryptValues[$i]);
    if($i==3)   $order_status=$information[1];
}

if($order_status==="Success")
{
    echo '<script>window.location.href = "payment_success.php";</script>';
}
else if($order_status==="Aborted")
{
    echo '<script>window.location.href = "payment_abort.php";</script>';


}
else if($order_status==="Failure")
{
    echo '<script>window.location.href = "payment_fail.php";</script>';

}
else
{
    echo '<script>window.location.href = "payment_secure.php";</script>';


}

echo "</center>";

如果有任何问题,也不应该接受所有付款,

任何一个人,请保存我的一天..

0 个答案:

没有答案