New paypal system has stopped working with my code

好久不见. 提交于 2019-12-30 06:46:12

问题


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.

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:

Preapproval API call failed. Detailed Error Message: The receiver is based in a country that isn't enabled to receive paymentsError Code: 580022Error Severity: ErrorError Domain: PLATFORMError Category: Application

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";
}

Why is this no longer working? I am not getting any error in the apache error.log file.


回答1:


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.




回答2:


I finally got a response from PayPal which looks promising:

Response Via Email (xxxx)
Dear xxxxx,
my name is xxxxx from Merchant Technical Services
This is a known issue that I am working with our engineers closely on,
I apologize for the inconvenience this has caused.

Sincerely,
xxxxxx
Merchant Technical Support
PayPal, an eBay Company



来源:https://stackoverflow.com/questions/15552292/new-paypal-system-has-stopped-working-with-my-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!