WC_HTTPS::http_api_curl()
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
Method of the class: WC_HTTPS{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_HTTPS::http_api_curl( $handle, $r, $url );
- $handle(string) (required)
- -
- $r(mixed) (required)
- -
- $url(string) (required)
- -
WC_HTTPS::http_api_curl() WC HTTPS::http api curl code WC 9.4.2
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 ); } }