PHP Class PayPal\Auth\PPCertificateCredential

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

Protected Properties

Property Type Description
$applicationId string Test application Ids are available for the sandbox environment
$certificatePassPhrase string Password used to protect the API certificate
$certificatePath string Path to PEM encoded API certificate on local filesystem
$password string API password
$userName string API username

Public Methods

Method Description
__construct ( string $userName, string $password, string $certPath, string $certificatePassPhrase = null ) Constructs a new certificate credential object
getApplicationId ( )
getCertificatePassPhrase ( )
getCertificatePath ( )
getPassword ( )
getUserName ( )
setApplicationId ( $applicationId )
validate ( )

Method Details

__construct() public method

Constructs a new certificate credential object
public __construct ( string $userName, string $password, string $certPath, string $certificatePassPhrase = null )
$userName string API username
$password string API password
$certPath string Path to PEM encoded client certificate file
$certificatePassPhrase string password need to use the certificate

getApplicationId() public method

public getApplicationId ( )

getCertificatePassPhrase() public method

getCertificatePath() public method

public getCertificatePath ( )

getPassword() public method

public getPassword ( )

getUserName() public method

public getUserName ( )

setApplicationId() public method

public setApplicationId ( $applicationId )

validate() public method

public validate ( )

Property Details

$applicationId protected property

Test application Ids are available for the sandbox environment
protected string $applicationId
return string

$certificatePassPhrase protected property

Password used to protect the API certificate
protected string $certificatePassPhrase
return string

$certificatePath protected property

Path to PEM encoded API certificate on local filesystem
protected string $certificatePath
return string

$password protected property

API password
protected string $password
return string

$userName protected property

API username
protected string $userName
return string