简体   繁体   English

如何在Paypal Express Checkout PHP中从沙盒模式继续进行?

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

I have setup paypal express checkout system in my website from https://devtools-paypal.com/integrationwizard/ 我已经从https://devtools-paypal.com/integrationwizard/在我的网站上设置了贝宝快速结帐系统

It's working fine in sandbox mode. 在沙盒模式下工作正常。

Now i would like to on live mode(Paypal). 现在,我想使用实时模式(Paypal)。 After change to 更改为

$sandbox=false;

I am getting the following exception: 我收到以下异常:

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 Severity Code: Error SetExpressCheckout API call failed. Detailed Error Message: Security header is not validShort Error Message: Security errorError Code: 10002Error错误严重性代码:错误

From the Paypal site - you need the live API credentials. 从Paypal网站-您需要实时API凭据。 If you haven't set up a merchant account, that is your next step. 如果您尚未设置商家帐户,则是下一步。 If you have, the credentials will come from you account settings. 如果有,则凭据将来自您的帐户设置。

Ready to Go Live? 准备上线了吗? Get a merchant account and generate API credentials. 获取商家帐户并生成API凭证。 In your code: 在您的代码中:

THIS ==> Replace the Sandbox API credentials with the live API credentials. 这==>用实时API凭据替换沙盒API凭据。 In the paypalfunctions.php file, make sure to set the Sandbox variable to false this causes the code to use PayPal live site API endpoints. 在paypalfunctions.php文件中,确保将Sandbox变量设置为false,这将导致代码使用PayPal实时站点API端点。

DO NOT hardcode your API credentials. 不要硬编码您的API凭据。 Manage your API credentials securely, such as loading the credentials from a secure key store or some other secure configuration. 安全地管理您的API凭据,例如从安全密钥库或某些其他安全配置中加载凭据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM