問題描述
在 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:
憑據錯誤確保您已正確輸入 API 用戶名、API 密碼和 API 簽名.有時會發生在復制和粘貼過程中不小心添加了一個空格,這會觸發此錯誤.在 SDK 或第三方購物車的管理面板中仔細檢查此設置.
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
這篇關于貝寶網關拒絕了請求.安全標頭無效(#10002:安全錯誤 Magento的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!