Created
February 13, 2016 18:26
-
-
Save strangerstudios/efd7b7ae6c32e491bb24 to your computer and use it in GitHub Desktop.
Update the SSLVERSION for CURL to support PayPal Express moving to TLS 1.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Update the SSLVERSION for CURL to support PayPal Express moving to TLS 1.2 | |
More info: https://devblog.paypal.com/upcoming-security-changes-notice/ | |
Your server will need to be updated to a supported version of OpenSSL for this to work. | |
Add this code to your active theme's functions.php or a custom plugin. | |
*/ | |
function my_http_api_curl($handle) { | |
curl_setopt( $handle, CURLOPT_SSLVERSION, 6 ); | |
} | |
add_action('http_api_curl', 'my_http_api_curl'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment