从 2.1.7 升级到 magento 到 2.2.1 后,paypal 方法未显示在结帐的付款方式列表中。
main.CRITICAL:PayPal NVP 网关错误:安全标头无效(#10002:安全错误)。相关 ID:77ca004062046。版本:72.0。[] []
main.CRITICAL:PayPal 网关已拒绝请求。安全标头无效(#10002:安全错误)。{"exception":"[object] (Magento\Framework\Exception\LocalizedException(code: 0): PayPal gateway has denied request. Security header is not valid (#10002: Security error). at /vendor/magento/framework/对象管理器/工厂/AbstractFactory.php:111)"}
main.DEBUG: array (
'url' => 'https://api-3t.paypal.com/nvp',
'getPalDetails' =>
array (
'METHOD' => 'getPalDetails',
'VERSION' => '72.0',
'USER' => '****',
'PWD' => '****',
'SIGNATURE' => '****',
'BUTTONSOURCE' => 'Magento_Cart_Community',
),
'response' =>
array (
'TIMESTAMP' => '2017-12-18T09:39:49Z',
'CORRELATIONID' => '77ca004062046',
'ACK' => 'Failure',
'VERSION' => '72.0',
'BUILD' => '39206242',
'L_ERRORCODE0' => '10002',
'L_SHORTMESSAGE0' => 'Security error',
'L_LONGMESSAGE0' => 'Security header is not valid',
'L_SEVERITYCODE0' => 'Error',
),
) [] []
我在付款方式中启用了 PayPal 一体化解决方案。