WordPress at Your Fingertips
function is not described

WC_HTTPS::http_api_curl() public WC 1.0

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

{} It's a method of the class: WC_HTTPS{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_HTTPS::http_api_curl( $handle, $r, $url );
$handle(string) (required)
-
$r(mixed) (required)
-
$url(string) (required)
-

Code of WC_HTTPS::http_api_curl() WC 5.9.0

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