Class PayPalCredentialManager
Class PayPalCredentialManager
PayPalCredentialManager holds all the credential information in one place.
Methods summary
public static
PayPal\Core\PayPalCredentialManager
|
#
getInstance( array|null $config = null )
Create singleton instance for this class.
Create singleton instance for this class.
Parameters
Returns
|
public
|
#
setCredentialObject( PayPal\Auth\OAuthTokenCredential $credential, string|null $userId = null, boolean $default = true )
Sets credential object for users
Sets credential object for users
Parameters
- $credential
- $userId
- User Id associated with the account
- $default
- If set, it would make it as a default credential for all requests
Returns
$this
|
public
PayPal\Auth\OAuthTokenCredential
|
#
getCredentialObject( null $userId = null )
Obtain Credential Object based on UserId provided.
Obtain Credential Object based on UserId provided.
Parameters
Returns
Throws
|
public
|
|