Update class-wc-https.php

Paypal will not allow anything other than TLS 1.2 so just set it to that.
This commit is contained in:
reidbiztech 2016-04-04 14:37:45 -03:00
parent e09374de17
commit f5293df3da
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}
}