Paypal网关为Magento商店返回错误

时间:2014-05-05 16:26:03

标签: php magento paypal payment-gateway

我已经在Magento 1.7.0.2上设置了Paypal Payments Pro,但是当我尝试下订单时,Paypal会返回错误:

[response] => Array
        (
            [TIMESTAMP] => 2014-05-05T15:52:41Z
            [CORRELATIONID] => 310e857075603
            [ACK] => Failure
            [VERSION] => 72.0
            [BUILD] => 10850615
            [L_ERRORCODE0] => 10002
            [L_SHORTMESSAGE0] => Security error
            [L_LONGMESSAGE0] => Security header is not valid
            [L_SEVERITYCODE0] => Error
        )

我在这里检查了我的凭据,他们正在恢复成功。 https://api-3t.paypal.com/nvp?&user=xxxxxxxxxx&pwd=xxxxxxxxxx&signature=xxxxxxxxxx&version=70.0&METHOD=SetExpressCheckout&RETURNURL=http://www.paypal.com/test.php&CANCELURL=http://www.paypal.com/test.php&PAYMENTACTION=Sale&AMT=50&CURRENCYCODE=USD

关于什么可能导致此安全标头问题的任何想法?

1 个答案:

答案 0 :(得分:2)

通常此错误表示您没有使用正确的API凭据。如果您确信您的凭据是正确的,那么请查看您的终端。沙盒凭据在生产环境中无效,而实时凭据将在沙箱中生成此错误