PHP 클래스 PayPal\Core\PayPalCredentialManager

PayPalCredentialManager holds all the credential information in one place.
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( ) Disabling __clone call
getCredentialObject ( null $userId = null ) : OAuthTokenCredential Obtain Credential Object based on UserId provided.
getInstance ( array | null $config = null ) : PayPalCredentialManager Create singleton instance for this class.
setCredentialObject ( OAuthTokenCredential $credential, string | null $userId = null, boolean $default = true ) Sets credential object for users

비공개 메소드들

메소드 설명
__construct ( $config ) Constructor initialize credential for multiple accounts specified in property file
initCredential ( array $config ) Load credentials for multiple accounts, with priority given to Signature credential.

메소드 상세

__clone() 공개 메소드

Disabling __clone call
public __clone ( )

getCredentialObject() 공개 메소드

Obtain Credential Object based on UserId provided.
public getCredentialObject ( null $userId = null ) : OAuthTokenCredential
$userId null
리턴 PayPal\Auth\OAuthTokenCredential

getInstance() 공개 정적인 메소드

Create singleton instance for this class.
public static getInstance ( array | null $config = null ) : PayPalCredentialManager
$config array | null
리턴 PayPalCredentialManager

setCredentialObject() 공개 메소드

Sets credential object for users
public setCredentialObject ( OAuthTokenCredential $credential, string | null $userId = null, boolean $default = true )
$credential PayPal\Auth\OAuthTokenCredential
$userId string | null User Id associated with the account
$default boolean If set, it would make it as a default credential for all requests