WC_HTTPS::http_api_curl( string $handle, mixed $r, string $url )

Force posts to PayPal to use TLS v1.2. See: https://core.trac.wordpress.org/ticket/36320 https://core.trac.wordpress.org/ticket/34924#comment:13 https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1914&viewlocale=en_US


Description Description


Parameters Parameters

$handle

(Required)

$r

(Required)

$url

(Required)


Top ↑

Source Source

File: includes/class-wc-https.php

	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, 6 );
		}
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.