@@ 359-373 (lines=15) @@ | ||
356 | curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); |
|
357 | } |
|
358 | ||
359 | if (substr($server['host'], -10) == 'paypal.com') { |
|
360 | $ssl_version = 0; |
|
361 | ||
362 | if ( defined('OSCOM_APP_PAYPAL_BRAINTREE_SSL_VERSION') && (OSCOM_APP_PAYPAL_BRAINTREE_SSL_VERSION == '1') ) { |
|
363 | $ssl_version = 6; |
|
364 | } |
|
365 | ||
366 | if (isset($opts['sslVersion']) && is_int($opts['sslVersion'])) { |
|
367 | $ssl_version = $opts['sslVersion']; |
|
368 | } |
|
369 | ||
370 | if ($ssl_version !== 0) { |
|
371 | curl_setopt($curl, CURLOPT_SSLVERSION, $ssl_version); |
|
372 | } |
|
373 | } |
|
374 | ||
375 | if ( defined('OSCOM_APP_PAYPAL_BRAINTREE_PROXY') && tep_not_null(OSCOM_APP_PAYPAL_BRAINTREE_PROXY) ) { |
|
376 | curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true); |
@@ 434-448 (lines=15) @@ | ||
431 | curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); |
|
432 | } |
|
433 | ||
434 | if (substr($server['host'], -10) == 'paypal.com') { |
|
435 | $ssl_version = 0; |
|
436 | ||
437 | if ( defined('OSCOM_APP_PAYPAL_SSL_VERSION') && (OSCOM_APP_PAYPAL_SSL_VERSION == '1') ) { |
|
438 | $ssl_version = 6; |
|
439 | } |
|
440 | ||
441 | if (isset($opts['sslVersion']) && is_int($opts['sslVersion'])) { |
|
442 | $ssl_version = $opts['sslVersion']; |
|
443 | } |
|
444 | ||
445 | if ($ssl_version !== 0) { |
|
446 | curl_setopt($curl, CURLOPT_SSLVERSION, $ssl_version); |
|
447 | } |
|
448 | } |
|
449 | ||
450 | if ( defined('OSCOM_APP_PAYPAL_PROXY') && tep_not_null(OSCOM_APP_PAYPAL_PROXY) ) { |
|
451 | curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true); |