问题描述
大约1个月,我无法进行我的项目.现在,我有一些时间可以重新讨论它.我注意到贝宝做了一些更改.
I've not been able to work on a project of mine for about 1 month. Now that I have some time to get back into it. I have noticed that paypal have done some changes.
在我暂时退出该项目之前,我可以使用Paypal API进行付款.但是现在,当我使用相同的代码时,会收到以下消息:
Before my temporary break from this project, I was able to send off payments using the paypal api's. But now, when I use the same code, I get the following message:
我在英国,而且我的paypalplaform.php文件完全没有更改.我唯一更改的是具有新凭据的api凭据内容:
I'm in the UK and my paypalplaform.php file hasn't changed at all. The only thing I have changed is the api credential stuff with the new credentials I have been given:
$PROXY_HOST = '127.0.0.1';
$PROXY_PORT = '808';
$Env = "sandbox";
$API_UserName = "new-facilitator_api-email-goes-here";
$API_Password = "password-goes-here";
$API_Signature = "sig-goes-here";
// AppID is preset for sandbox use
// If your application goes live, you will be assigned a value for the live environment by PayPal as part of the live onboarding process
$API_AppID = "APP-80W284485P519543T";
$API_Endpoint = "";
if ($Env == "sandbox")
{
$API_Endpoint = "https://svcs.sandbox.paypal.com/AdaptivePayments";
}
else
{
$API_Endpoint = "https://svcs.paypal.com/AdaptivePayments";
}
为什么这不再起作用?我在apache error.log文件中没有收到任何错误.
Why is this no longer working? I am not getting any error in the apache error.log file.
推荐答案
问题出在您使用的沙盒AppID:APP-80W284485P519543T.
The problem lies with the Sandbox AppID you're using: APP-80W284485P519543T.
我们已经知道此问题,并正在努力解决.解决此问题后,我会尽快通知您.
同时,您应该可以继续使用美国帐户进行测试.
We're aware of this issue and are working to resolve it. I'll let you know as soon as this is fixed.
In the meantime you should be able to resume testing with US accounts.
这篇关于新的贝宝系统已停止使用我的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!