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.