BraintreeHttp\HttpException: Client Authentication failed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
}
- Labels:
-
Payments REST APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, did you find a solution? I have exactly the same problem and no ideas what I am doing wrong.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ) )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Error message for obtaining access_token in REST APIs
- Google Pay SCA authentication dialog appears behind pay.google.com overlay in REST APIs
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- p is not a function error using the example downloaded from Paypal in SDKs
- failed to pay with sandbox account in Sandbox Environment