We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb2d26a commit a3f0b24Copy full SHA for a3f0b24
src/Message/AbstractRequest.php
@@ -126,6 +126,13 @@ public function getHttpMethod()
126
127
public function sendData($data)
128
{
129
+ // Stripe only accepts TLS >= v1.2, so make sure Curl is told
130
+ $config = $this->httpClient->getConfig();
131
+ $curlOptions = $config->get('curl.options');
132
+ $curlOptions[CURLOPT_SSLVERSION] = 6;
133
+ $config->set('curl.options', $curlOptions);
134
+ $this->httpClient->setConfig($config);
135
+
136
// don't throw exceptions for 4xx errors
137
$this->httpClient->getEventDispatcher()->addListener(
138
'request.error',
0 commit comments