You need to declare constant:
if (!defined('CURL_SSLVERSION_TLSv1_2')) {
define('CURL_SSLVERSION_TLSv1_2', 6);
}
curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
that is common issue for example in another plugin:
https://github.com/wepay/PHP-SDK/issues/26