lib/pagarme/request.rb in pagarme-2.2.2 vs lib/pagarme/request.rb in pagarme-2.2.3
- old
+ new
@@ -83,10 +83,11 @@
url: full_api_url,
payload: MultiJson.encode(parameters),
open_timeout: PagarMe.open_timeout,
timeout: PagarMe.timeout,
ssl_ca_file: SSL_CA_FILEPATH,
- headers: DEFAULT_HEADERS.merge(headers)
+ headers: DEFAULT_HEADERS.merge(headers),
+ ssl_version: 'TLSv1_2'
}
end
def full_api_url
url = PagarMe.api_endpoint + path