Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Setting to force TLS 1.2 #463
Lots of people are running into the POODLE issue still, but I don't want to hard code the TLS 1.2 option for everybody because servers that are configured correctly don't need it.
I do want to add an option where people can "Force TLS 1.2" and if this is enabled in the plugin then it would add the CURLOPT_SSLVERSION = 6 setting to the curl request to PayPal.
This will be a global plugin setting, so we can create a "Global" tab under Settings -> PayPal for WooCommerce -> General, and within that we'll add this new option.
Again, if enabled, all of the gateways should then force TLS 1.2 by adding that CURLOPT_SSLVERSION, which is something that will probably need to be adjusted in the class libraries directly. It's a simple line of code being added, but we'll need to pass some sort of option flag into the class/function to add it or not based on the option.