贝宝网关拒绝了请求.安全标头无效(#10002:安全错误 Magento

在 magento 中支付预付款.我已经在 magento admin 中填写了所有凭据.但是当我进入前端并点击支付宝按钮时,它会给出

up the pay-pal advance in magento . I have fill all the credentials in magento admin . BUt when i go to frontend and click pay-pal button it gives

PayPal 网关拒绝了请求.安全标头无效(#10002: 安全错误

PayPal gateway has rejected request. Security header is not valid (#10002: Security error

我用谷歌搜索了很多,发现了一些建议,比如

i have googled a lot and found some suggestions like

从中删除 API 用户名、API 密码和 API 签名管理->配置->Paypal->API/集成设置.清除缓存并再次测试

Remove API Username, API Password and API Signature from Admin->configuration->Paypal->API/Integration Settings. clear cache and test again

我已经尝试了所有这些,但仍然出现相同的错误.

i have tried all these but it still gives the same error.

请告诉我可能是什么问题

Please suggest me what can be the issue

推荐答案

Security header is not valid 错误仅由两个原因引起:

The Security header is not valid error is only caused for two reasons:

  1. 凭据错误确保您已正确输入 API 用户名、API 密码和 API 签名.有时会发生在复制和粘贴过程中不小心添加了一个空格,这会触发此错误.在 SDK 或第三方购物车的管理面板中仔细检查此设置.

  1. Wrong credentials Make sure that you've put your API Username, API Password and API Signature correctly. Sometimes it happens that during copy and paste there is accidently a space added, this would trigger this error. Doublecheck this settings in the SDK or in the admin panel of your third party shopping cart.

错误的端点如果您将数据发送到错误的端点,则会出现此错误.确保您将实时凭据和数据发送到我们的实时端点.当您想要测试您的商店时,请确保您使用我们的测试端点和沙盒测试帐户中的凭据.如果您使用第三方购物车,请确保您的商店在测试或实时模式下运行,以及您使用的凭据.

Wrong Endpoint This error would come up if you send the data to the wrong endpoint. Make sure that you sending the live credentials and data to our live endpoint. When you want to test your store make sure that you use our test endpoint and the credentials from your sandbox test account. If you are using a third party shopping cart, make sure that your store is running in test or live mode, regarding which credentials you are using.

您也可以在这里检查您的凭据:

You can check for your credentials here too:

对于现场

https://api-3t.paypal.com/nvp?&user=xxxxxxxxxx&pwd=xxxxxxxxxx&signature=xxxxxxxxxxx&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

对于沙盒

https:///api-3t.sandbox.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

只需替换用户、密码和签名,然后在浏览器中输入即可.如果您正确输入了您的凭据,您应该会得到 ACK = SUCCESS.

Just Substitute the user, pwd and signature and enter in your browser. You should get ACK = SUCCESS if you have input your credentials correctly.

您也可以在这里获取您的凭据:https://www.paypal.com/cgi-bin/webscr?cmd=_get-api-signature&generic-flow=true

You can also get your credentials here : https://www.paypal.com/cgi-bin/webscr?cmd=_get-api-signature&generic-flow=true

相关文章