PHP 클래스 PayPal\Api\OpenIdSession

파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
getAuthorizationUrl ( string $redirectUri, array $scope, string $clientId, null $nonce = null, null $state = null, ApiContext $apiContext = null ) : string Returns the PayPal URL to which the user must be redirected to start the authentication / authorization process.
getLogoutUrl ( string $redirectUri, string $idToken, ApiContext $apiContext = null ) : string 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

메소드 상세

getAuthorizationUrl() 공개 정적인 메소드

Returns the PayPal URL to which the user must be redirected to start the authentication / authorization process.
public static getAuthorizationUrl ( string $redirectUri, array $scope, string $clientId, null $nonce = null, null $state = null, ApiContext $apiContext = null ) : string
$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 PayPal\Rest\ApiContext Optional API Context
리턴 string Authorization URL

getLogoutUrl() 공개 정적인 메소드

Returns the URL to which the user must be redirected to logout from the OpenID provider (i.e. PayPal)
public static getLogoutUrl ( string $redirectUri, string $idToken, ApiContext $apiContext = null ) : string
$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 PayPal\Rest\ApiContext Optional API Context
리턴 string logout URL