PayPal App works perfectly as Sandbox, Client Authentication failed on Live: list of steps to check?

假如想象 提交于 2019-12-11 09:19:08

问题


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!

来源:https://stackoverflow.com/questions/49830063/paypal-app-works-perfectly-as-sandbox-client-authentication-failed-on-live-lis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!