BraintreeHttp\HttpException: Client Authentication failed

supersonicblond
Contributor
Contributor

Hello 

I have the following error when the URL onApprove is called.

 

Fatal error: Uncaught BraintreeHttp\HttpException: {"error":"invalid_client","error_description":"Client Authentication failed"} in C:\Users\nspac\Documents\Websites\sfm.dev.cc\wp-content\themes\rttheme18\rt-framework\functions\vendor\braintree\braintreehttp\lib\BraintreeHttp\HttpClient.php on line 185( ! ) BraintreeHttp\HttpException: {"error":"invalid_client","error_description":"Client Authentication failed"} in C:\Users\nspac\Documents\Websites\sfm.dev.cc\wp-content\themes\rttheme18\rt-framework\functions\vendor\braintree\braintreehttp\lib\BraintreeHttp\HttpClient.php on line 185

 

in the class paypalclient.php The client ID and secret are valid. I don't know where to look. Could someone help ?

public static function environment()
{
$clientId = getenv("CLIENT_ID") ?: "AS-jUVP9LDRanDVMqw7gnyYat2hQa8o0E7dI0nRtDwh3uId1xArn1m34LnfBl_LpJPiOExuN91roae3A";
$clientSecret = getenv("CLIENT_SECRET") ?: "EOaDtvhFiU5ex5-vMNpwuKwbeYVbKWJ73Fd7325d59xR3byo58YxnJ042ISOGrlPLtCWhSP1Q1sry3YX";
return new SandboxEnvironment($clientId, $clientSecret);
}

 

Login to Me Too
4 REPLIES 4

wepsi
Contributor
Contributor

Hi, did you find a solution? I have exactly the same problem and no ideas what I am doing wrong.

Thanks!

Login to Me Too

supersonicblond
Contributor
Contributor

I didn't. I ended up integration the previous paypal express check out.

Login to Me Too

tmscloud
New Community Member

I am getting same issue when trying to login to create Invoies

 

when I put correctly in sandbox it works but when I put into live it gives error

Array
(
    [status] => 0
    [error] => Array
        (
            [error] => invalid_client
            [error_description] => Client Authentication failed
        )

)
Login to Me Too

Choa13
New Community Member

has anyone found a solution to this problem? I have exactly the same problem and for the moment Paypal cannot find anything...

Except that I have no choice, I'm not a web developer and I would not configure another method than what the developer had configured.

Thanks in advance

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.