簡體   English   中英

如何在Paypal Express Checkout PHP中從沙盒模式繼續進行?

[英]How to go on live from sandbox mode in paypal express checkout php?

我已經從https://devtools-paypal.com/integrationwizard/在我的網站上設置了貝寶快速結帳系統

在沙盒模式下工作正常。

現在,我想使用實時模式(Paypal)。 更改為

$sandbox=false;

我收到以下異常:

SetExpressCheckout API call failed. Detailed Error Message: Security header is not validShort Error Message: Security errorError Code: 10002Error SetExpressCheckout API call failed. Detailed Error Message: Security header is not validShort Error Message: Security errorError Code: 10002Error錯誤嚴重性代碼:錯誤

從Paypal網站-您需要實時API憑據。 如果您尚未設置商家帳戶,則是下一步。 如果有,則憑據將來自您的帳戶設置。

准備上線了嗎? 獲取商家帳戶並生成API憑證。 在您的代碼中:

這==>用實時API憑據替換沙盒API憑據。 在paypalfunctions.php文件中,確保將Sandbox變量設置為false,這將導致代碼使用PayPal實時站點API端點。

不要硬編碼您的API憑據。 安全地管理您的API憑據,例如從安全密鑰庫或某些其他安全配置中加載憑據。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM