diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index d70d6cee..3b6c00be 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -126,6 +126,13 @@ public function getHttpMethod() public function sendData($data) { + // Stripe only accepts TLS >= v1.2, so make sure Curl is told + $config = $this->httpClient->getConfig(); + $curlOptions = $config->get('curl.options'); + $curlOptions[CURLOPT_SSLVERSION] = 6; + $config->set('curl.options', $curlOptions); + $this->httpClient->setConfig($config); + // don't throw exceptions for 4xx errors $this->httpClient->getEventDispatcher()->addListener( 'request.error',