PayPal -付款人未被识别



我目前正在做一个使用Magento和PayPal的项目。我已经用沙盒配置了PayPal设置,我在多个项目中使用,当我选择在沙盒模式下用PayPal支付时,我可以正确支付,但当我被重定向到商店时,我得到了错误"付款人未被识别",无法继续订单。该商店是在一个代理谁是配置在贝宝太。支付的电子邮件是我在其他项目上使用的,我没有问题。有什么提示或想法吗?代理相关?

最后发现它是在API NVP的调用上,这是与代理的冲突,有时调用的答案得到一个数组4(发送)和一个数组3(获取)。

appcodecoreMagePaypalModelApiNvp.php第973行

I have changed

$response = preg_split('/^r?$/m', $response, 2);
$response = trim($response[1]);
$response = $this->_deformatNVP($response);

$answer = preg_split('/^r?$/m', $response, 4);
if($answer[3]) {
    $response = preg_split('/^r?$/m', $response, 4);
    $response = trim($response[3]);
} else {
    $response = preg_split('/^r?$/m', $response, 3);
    $response = trim($response[2]);
}
$response = $this->_deformatNVP($response);

当然,我已经重写了这个类,以保持核心代码的整洁。

Magento版本:1.9.2.4

希望对大家有所帮助。

我发现这是一个Magentos补丁没有正确应用的问题确保您的系统中有这个文件/lib/Unserialize/读者/Null.php

是这个补丁的一部分super -8788

最新更新