Sage支付5006错误代码,注册正常,但响应从未到达我的回调页面

时间:2016-07-12 15:53:17

标签: sagepay

我收到以下错误:

HTTP Status Code:   500
HTTP Status Message:    The request was unsuccessful due to an unexpected condition encountered by the server.
Error Code :    5006
Error Description : Unable to redirect to Vendor's web site. The Vendor failed to provide a RedirectionURL.

我查看了此页面上提供的帮助: Sagepay 5006 error code fix

但问题是响应永远不会到达我的通知页面,我检查过该页面是可以访问的,因此我无法检查许多建议,因为我不知道Sage Pay帖子包含什么。

这是我发布的数据(我发布时没有换行符,并且有一个realVendor名称!)

VPSProtocol=3.00&
TxType=PAYMENT&
Vendor=name&
VendorTxCode=2a5e86f2a8609ff996e6&
Amount=50&
Currency=GBP&
Description=Something about stuff&
NotificationURL=https%3A%2F%2Four-site.co.uk%2Fecodes%2Forder-confirmation.php&
BillingFirstnames=sdsdsd&
BillingSurname=sdsdsd&
BillingAddress1=sdsds&
BillingAddress2=sdsds&
BillingCity=sdsdsd&
BillingPostCode=dsdsdd&
BillingCountry=GB&
BillingEMail=sdfsf@adsad.com&
BillingPhone=12112121211&
DeliveryFirstnames=sdsdsd&
DeliverySurname=sdsdsd&
DeliveryAddress1=sdsds&
DeliveryAddress2=sdsds&
DeliveryCity=sdsdsd&
DeliveryPostCode=dsdsdd&
DeliveryCountry=GB

我使用从Sage Pay exmaple中提取的代码发布此内容:

set_time_limit(60);
$output = array();
$curlSession = curl_init();

curl_setopt($curlSession, CURLOPT_URL, $url);
curl_setopt($curlSession, CURLOPT_HEADER, 0);
curl_setopt($curlSession, CURLOPT_POST, 1);
curl_setopt($curlSession, CURLOPT_RETURNTRANSFER, 1);
//curl_setopt($curlSession, CURLOPT_TIMEOUT, $ttl);
curl_setopt($curlSession, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($curlSession, CURLOPT_POSTFIELDS, arrayToQueryString($data));

if (!empty($caCertPath))
{
    curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, 1);
    curl_setopt($curlSession, CURLOPT_CAINFO, $caCertPath);
} 
else
{
    curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, 0);
}

$rawresponse = curl_exec($curlSession);
$response = queryStringToArray($rawresponse, "\r\n");

标题('位置:'。$ response ['NextURL']]);

0 个答案:

没有答案