New paypal system has stopped working with my code

2019-02-14 02:04发布

问题:

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