我在我的网站上设置了 paypal 快速结账系统 https://devtools-paypal.com/integrationwizard/
它在沙盒模式下运行良好。
现在我想使用实时模式(Paypal)。改成后
$sandbox=false;
我收到以下异常:
SetExpressCheckout API 调用失败。详细错误消息:安全 header 无效简短错误消息:安全错误错误代码:10002Error
严重性代码:错误
最佳答案
从 Paypal 站点 - 您需要实时 API 凭据。如果您还没有设置商家帐户,那是您的下一步。如果有,凭据将来自您的帐户设置。
Ready to Go Live? Get a merchant account and generate API credentials. In your code:
THIS ==> Replace the Sandbox API credentials with the live API credentials. 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.
DO NOT hardcode your API credentials. Manage your API credentials securely, such as loading the credentials from a secure key store or some other secure configuration.
关于php - 如何在 paypal 快速结帐 php 中从沙盒模式继续直播?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32541661/