PHP Class PayPal\Core\PPCredentialManager

Show file Open project: paypal/sdk-core-php Class Usage Examples

Public Methods

Method Description
__clone ( )
getCredentialObject ( $userId = null ) * Obtain Credential Object based on UserId provided.
getInstance ( $config ) * Create singleton instance for this class.

Private Methods

Method Description
__construct ( $config ) * Constructor initialize credential for multiple accounts specified in property file.
initCredential ( $config ) * Load credentials for multiple accounts, with priority given to Signature credential.

Method Details

__clone() public method

public __clone ( )

getCredentialObject() public method

* Obtain Credential Object based on UserId provided.
public getCredentialObject ( $userId = null )

getInstance() public static method

* Create singleton instance for this class.
public static getInstance ( $config )