Class PayPalHttpConfig
Class PayPalHttpConfig Http Configuration Class
Methods summary
public
|
#
__construct( string $url = null, string $method =
Default Constructor |
public
null|string
|
|
public
string
|
|
public
array
|
|
public
string|null
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setSSLCert( $certPath, null $passPhrase = null )
Set ssl parameters for certificate based client authentication |
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
array
|
#
getHttpConstantsFromConfigs( array $configs, $prefix )
Retrieves an array of constant key, and value based on Prefix |
Properties summary
public static
array
|
$defaultCurlOptions
Some default options for curl These are typically overridden by PayPalConnectionManager |
#
array(
CURLOPT_SSLVERSION => 6,
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60, // maximum number of seconds to allow cURL functions to execute
CURLOPT_USERAGENT => 'PayPal-PHP-SDK',
CURLOPT_HTTPHEADER => array(),
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_SSL_VERIFYPEER => 1,
CURLOPT_SSL_CIPHER_LIST => 'TLSv1:TLSv1.2'
//Allowing TLSv1 cipher list.
//Adding it like this for backward compatibility with older versions of curl
)
|