Hi Mr,
Yes, we do currently support outgoing TLS 1.2 connections as long as your site is configured to use PHP 5.5.
To do this, follow the instructions on our
PHP5 wiki page to add the following lines to your .htaccess file:
Code: Select all
Action php-cgi /cgi-bin/php55
AddHandler php-cgi .php
You can use the following PHP code to test the connection to PayPal to ensure it's working:
Code: Select all
<pre>
<?php
ob_start();
$ch = curl_init();
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_STDERR, $debug = fopen('php://memory', 'w'));
curl_setopt($ch, CURLOPT_URL, "https://tlstest.paypal.com/");
//curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
$res = curl_exec($ch);
fseek($debug, 0, SEEK_SET);
$debugout = stream_get_contents($debug);
fclose($debug);
echo $debugout . "\n";
echo "Result = "; var_dump($res);
if ($err = curl_error($ch)) {
echo "ERROR: $err\n";
echo "DEBUG INFORMATION:\n###########";
echo "CURL VERSION";
echo json_encode(curl_version(), JSON_PRETTY_PRINT);
}
?>
</pre>
Just place that code in a ".php" file in your web root and call it from your browser.
If it doesn't print any errors and shows something like "Result = bool(true)" then it worked. You'll also see something in the output to the effect of "SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256".