From f5293df3da956e25bd9584d50d0aa4b859316942 Mon Sep 17 00:00:00 2001 From: reidbiztech Date: Mon, 4 Apr 2016 14:37:45 -0300 Subject: [PATCH] Update class-wc-https.php Paypal will not allow anything other than TLS 1.2 so just set it to that. --- includes/class-wc-https.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-https.php b/includes/class-wc-https.php index fdd2f352519..54f71f42c70 100644 --- a/includes/class-wc-https.php +++ b/includes/class-wc-https.php @@ -123,7 +123,7 @@ class WC_HTTPS { */ public static function http_api_curl( $handle, $r, $url ) { if ( strstr( $url, 'https://' ) && ( strstr( $url, '.paypal.com/nvp' ) || strstr( $url, '.paypal.com/cgi-bin/webscr' ) ) ) { - curl_setopt( $handle, CURLOPT_SSLVERSION, 1 ); + curl_setopt( $handle, CURLOPT_SSLVERSION, 6 ); } } }