Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New paypal system has stopped working with my code

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.

like image 400
oshirowanen Avatar asked Mar 21 '13 15:03

oshirowanen


People also ask

Why is my PayPal suddenly not working?

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.

Why does PayPal say we're sorry things don't appear to be working right now?

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.

Is PayPal under maintenance right now?

Current PayPal status is up.


1 Answers

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.

like image 98
Robert Avatar answered Sep 23 '22 00:09

Robert