New PayPal system stopped working with my code

I could not work on my project for about 1 month. Now I have time to return to it. I noticed that paypal made some changes.

Prior to my temporary exit from this project, I was able to send payments using paypal api. But now, when I use the same code, I get the following message:

Failed to make preapproval API call. Detailed error message: receiver based in a country that is not able to receive paymentError Code: 580022Error Severity: ErrorError Domain: PLATFORMError Category: Application

I am in the UK and my paypalplaform.php file has not changed at all. The only thing I changed is the api attribute with the new credentials that were provided to me:

$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.

+5
2

Sandbox AppID, : APP-80W284485P519543T.

. , .
.

+3

- PayPal, :

(xxxx)
xxxxx,
xxxxx Merchant Technical Services
, ,
.

,


PayPal, eBay

+2

All Articles