php 贝宝网关拒绝了请求。安全标头无效(#10002:安全错误 Magento
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23261766/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PayPal gateway has rejected request. Security header is not valid (#10002: Security error Magento
提问by Rohit Goel
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
在 magento 中支付预付款。我已经在 magento admin 中填写了所有凭据。但是当我去前端并点击它给的支付宝按钮时
PayPal gateway has rejected request. Security header is not valid (#10002: Security error
贝宝网关拒绝了请求。安全标头无效(#10002:安全错误
i have googled a lot and found some suggestions like
我用谷歌搜索了很多,发现了一些建议,比如
Remove API Username, API Password and API Signature from Admin->configuration->Paypal->API/Integration Settings. clear cache and test again
从 Admin->configuration->Paypal->API/Integration Settings 中删除 API 用户名、API 密码和 API 签名。清除缓存并再次测试
i have tried all these but it still gives the same error.
我已经尝试了所有这些,但它仍然给出相同的错误。
Please suggest me what can be the issue
请建议我可能是什么问题
回答by Vimalnath
The Security header is not valid error is only caused for two reasons:
安全标头无效错误仅由两个原因引起:
Wrong credentialsMake 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 EndpointThis 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.
错误的凭据确保您已正确输入 API 用户名、API 密码和 API 签名。有时会发生在复制和粘贴过程中不小心添加了一个空格,这会触发此错误。在 SDK 或第三方购物车的管理面板中仔细检查此设置。
错误的端点如果您将数据发送到错误的端点,则会出现此错误。确保您将实时凭据和数据发送到我们的实时端点。当您想要测试您的商店时,请确保您使用我们的测试端点和沙盒测试帐户中的凭据。如果您使用第三方购物车,请确保您的商店在测试或实时模式下运行,以及您使用的凭据。
You can check for your credentials here too:
您也可以在此处检查您的凭据:
FOR LIVE
FOR LIVE
FOR SANDBOX
FOR SANDBOX
Just Substitute the user, pwdand signatureand enter in your browser. You should get ACK = SUCCESS if you have input your credentials correctly.
只需替换用户、密码和签名并在浏览器中输入即可。如果您正确输入了您的凭据,您应该得到 ACK = SUCCESS。
You can also get your credentials here : https://www.paypal.com/cgi-bin/webscr?cmd=_get-api-signature&generic-flow=true
您也可以在这里获取您的凭据:https: //www.paypal.com/cgi-bin/webscr?cmd=_get-api-signature&generic-flow=true
回答by demo
This error simply means your credentials are wrong. Please check with the credentials. If you are using sandbox then you are supposed to provide facilitator related credentials.
此错误仅表示您的凭据错误。请检查凭据。如果您使用的是沙箱,那么您应该提供与服务商相关的凭据。
回答by Markus
Dont let the others fool you, they just type in stuff here they googled on the internet.
不要让其他人愚弄您,他们只是在此处输入他们在互联网上搜索的内容。
Look for the number you get here: https://developer.paypal.com/docs/classic/api/errors/
查找您在此处获得的号码:https: //developer.paypal.com/docs/classic/api/errors/
Because the information provided by these code is a delicate matter, they display this error message instead of you account is locked, account restricted, limit exceeded and so on.
因为这些代码提供的信息是一件微妙的事情,所以它们会显示此错误消息,而不是您帐户被锁定、帐户受限、超出限制等。
Thats what they told me, at least.
至少他们是这么告诉我的。
We also get this code from time to time, after hundreds of paypal transactions, so wrong paypal credentials from the side of the shop owner is quite unlikely, isnt it? ;)
我们也时不时得到这个代码,经过数百次paypal交易,所以不太可能是店主一方错误的paypal凭据,不是吗?;)
回答by pp_MSI_Jenn
If you are using PayPal Payments Advancedwith Magento, you should be using your PayPal Manager credentials, and not your API Credentials.
This could be the reason you are getting Security Banner Header not valid 10002.
Here is the integration steps from Magento:
PayPal Advanced Integration with Magento
如果您将PayPal Payments Advanced与Magento一起使用,则您应该使用您的 PayPal Manager 凭证,而不是您的 API 凭证。
这可能是您收到 Security Banner Header not valid 10002 的原因。
以下是 Magento 的集成步骤:
PayPal Advanced Integration with Magento
You need to setup Layout Cin PayPal ManagerPayPal Manager Login.
Make certain that you include your error URL, cancel URL, and Return URL. Magento is very good about telling you what URL you should be using.
你需要设置布板在贝宝经理贝宝经理登录。
确保包含错误 URL、取消 URL 和返回 URL。Magento 非常擅长告诉您应该使用什么 URL。
After you have setup Layout Cin PayPal Manageryou need to use your Manager Credentialsin Magento.
Just in case you need it, here is the information on setting up your Hosted Checkout Pages in PayPal Manager:
PayPal Hosted Checkout Pages
在PayPal 管理器中设置布局 C 后,您需要在 Magento 中使用您的管理器凭据。
以防万一,这里是有关在 PayPal 管理器中设置托管结账页面的信息:PayPal 托管结账页面
Here is the information on where to find your PayPal Manager credentials:
以下是有关在哪里可以找到您的 PayPal 经理凭证的信息:
- Partner: Your PayPal Partner ID. Most direct Merchants have PayPal as the Partner
- Vendor: Your PayPal user login name. Also known as Merchant Login
- User: The ID of an additional user set up on your PayPal account. Same as Merchant login if you have not setup a separate user id in PayPal Manager.
- 合作伙伴:您的 PayPal 合作伙伴 ID。大多数直销商都有 PayPal 作为合作伙伴
- 供应商:您的 PayPal 用户登录名。也称为商户登录
- 用户:在您的 PayPal 帐户上设置的其他用户的 ID。如果您没有在 PayPal 管理器中设置单独的用户 ID,则与商家登录相同。
Use your API Signature Credentials from your PayPal account for the Express Checkout setup.
使用您的 PayPal 帐户中的 API 签名凭证进行快速结账设置。
回答by Gavin G
In my case everything seemed fine at Magento level. I asked client questions about PayPal, at which point they tried to login to the paypal.com site and were unable to (authentication failed). Account had been locked. Client was able to resolve with PayPal tech support directly, no Magento issue after all.
就我而言,Magento 级别的一切似乎都很好。我向客户询问了有关 PayPal 的问题,当时他们试图登录 paypal.com 站点,但无法登录(身份验证失败)。帐户已被锁定。客户可以直接通过 PayPal 技术支持解决,毕竟没有 Magento 问题。
回答by Yundong Cai
I got the same problem and found the problem is
我遇到了同样的问题,发现问题是
- I type the API signature character by charter, the character "I" is similar to "l"
- As there are multiple "I" in the signature, I have to tested one by one via the link mentioned by Vimalnath.
- Then damn it, it works.
- 我按章程键入API签名字符,字符“I”类似于“l”
- 由于签名中有多个“我”,我不得不通过Vimalnath提到的链接一一测试。
- 然后该死的,它有效。
Therefore, copy is a better way while being careful about the spaces at the front or end.
因此,复制是一种更好的方法,同时要注意前端或末尾的空格。