Метод | Описание | |
---|---|---|
getAuthorizationUrl ( string $redirectUri, array $scope, string $clientId, null $nonce = null, null $state = null, |
Returns the PayPal URL to which the user must be redirected to start the authentication / authorization process. | |
getLogoutUrl ( string $redirectUri, string $idToken, |
Returns the URL to which the user must be redirected to logout from the OpenID provider (i.e. PayPal) |
Метод | Описание | |
---|---|---|
getBaseUrl ( $config ) : null | string | Gets the base URL for the Redirect URI |
public static getAuthorizationUrl ( string $redirectUri, array $scope, string $clientId, null $nonce = null, null $state = null, |
||
$redirectUri | string | Uri on merchant website to where the user must be redirected to post paypal login |
$scope | array | The access privilges that you are requesting for from the user. Pass empty array for all scopes. |
$clientId | string | client id from developer portal See https://developer.paypal.com/webapps/developer/docs/integration/direct/log-in-with-paypal/detailed/#attributes for more |
$nonce | null | |
$state | null | |
$apiContext | Optional API Context | |
Результат | string | Authorization URL |
public static getLogoutUrl ( string $redirectUri, string $idToken, |
||
$redirectUri | string | Uri on merchant website to where the user must be redirected to post logout |
$idToken | string | id_token from the TokenInfo object |
$apiContext | Optional API Context | |
Результат | string | logout URL |