I have created my PayPal App to get payments in my website build in a PHP framework. This is server-side and I'm using PayPal REST API and PayPal-PHP-SDK library.
Everything is perfect on Sandbox (tested localhost and online as well).
After then, I've switched to Live mode. I've changed ClientID and SecretID of course, but the Client Authentication failed.
The complete error is:
{"error":"invalid_client","error_description":"Client Authentication failed"}
What I've verified is that
$apiContext = new \PayPal\Rest\ApiContext(
new \PayPal\Auth\OAuthTokenCredential(
self::$configuration['ClientID'],
self::$configuration['ClientSecret']
)
);
missed because I've got NULL.
So, I've tried again with a new SecretID (I've generated another one), but still got error.
My business paypal account is verified after linking my credit card, after submitting the 4-digit code and after having confirmation from PayPal support at the phone.
Other steps to check? Thanks!