diff --git a/sample/doc/lipp/GetUserInfo.html b/sample/doc/lipp/GetUserInfo.html index c746507..e82ce70 100644 --- a/sample/doc/lipp/GetUserInfo.html +++ b/sample/doc/lipp/GetUserInfo.html @@ -1,7 +1,7 @@
To obtain User Info, you have to follow three steps in general. +use PayPal\Auth\Openid\PPOpenIdUserinfo; +use PayPal\Auth\Openid\PPOpenIdTokeninfo;
To obtain User Info, you have to follow three steps in general. First, you need to obtain user's consent to retrieve the information you want. This is explained in the example "ObtainUserConsent.php".
Once you get the user's consent, the end result would be long lived refresh token. This refresh token should be stored in a permanent storage for later use.
Lastly, when you need to retrieve the user information, you need to generate the short lived access token diff --git a/sample/lipp/GetUserInfo.php b/sample/lipp/GetUserInfo.php index 86c465a..45911ff 100644 --- a/sample/lipp/GetUserInfo.php +++ b/sample/lipp/GetUserInfo.php @@ -3,8 +3,8 @@ // ### Obtain Access Token From Refresh Token require __DIR__ . '/../bootstrap.php'; -use PayPal\Auth\Openid\PPOpenIdTokenInfo; -use PayPal\Auth\Openid\PPOpenIdUserInfo; +use PayPal\Auth\Openid\PPOpenIdUserinfo; +use PayPal\Auth\Openid\PPOpenIdTokeninfo; // To obtain User Info, you have to follow three steps in general. // First, you need to obtain user's consent to retrieve the information you want.
Obtain Access Token From Refresh Token