Overview
  • Namespace
  • Class

Namespaces

  • PayPal
    • Api
    • Auth
    • Cache
    • Common
    • Converter
    • Core
    • Exception
    • Handler
    • Log
    • Rest
    • Security
    • Transport
    • Validation

Classes

  • PayPalConfigManager
  • PayPalConstants
  • PayPalCredentialManager
  • PayPalHttpConfig
  • PayPalHttpConnection
  • PayPalLoggingManager

Class PayPalCredentialManager

Class PayPalCredentialManager

PayPalCredentialManager holds all the credential information in one place.

Namespace: PayPal\Core
Package: PayPal\Core
Located at PayPal/Core/PayPalCredentialManager.php

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

$config

Returns

PayPal\Core\PayPalCredentialManager
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

$userId

Returns

PayPal\Auth\OAuthTokenCredential

Throws

PayPal\Exception\PayPalInvalidCredentialException
public
# __clone( )

Disabling __clone call

Disabling __clone call

API documentation generated by ApiGen