PayPal\Auth\PPCertificateCredential::__construct PHP Méthode

__construct() public méthode

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
    public function __construct($userName, $password, $certPath, $certificatePassPhrase = null)
    {
        $this->userName = trim($userName);
        $this->password = trim($password);
        $this->certificatePath = trim($certPath);
        $this->certificatePassPhrase = $certificatePassPhrase;
        $this->validate();
    }