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.
There are many reasons PayPal might not be working correctly. The site itself could be down, or you may have an unverified account or not enough money in your account. There's also a chance that you haven't confirmed your bank account or card.
This error typically occurs for two reasons: You have entered your PayPal email address or PayPal Identity Token incorrectly. Your Encrypted Website Payments set to ON.
Current PayPal status is up.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With