Skip to content
This repository was archived by the owner on Dec 30, 2019. It is now read-only.

Commit

Permalink
Add way to set specific TLS for PHP/Ruby libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
bluk authored and Bryant Luk committed Jan 19, 2017
1 parent ac9f4c4 commit 7d7bfce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
18 changes: 17 additions & 1 deletion Braintree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ SDK | TLSv1.2 supported version
--- | -------
[braintree_dotnet](https://github.com/braintree/braintree_dotnet) | [3.1.0](https://github.com/braintree/braintree_dotnet/releases/)

## PHP

If your environment's default settings do not support TLS 1.2, you may specify a specific version of TLS to use starting in [3.21.0](https://github.com/braintree/braintree_php/releases/).

```
Braintree\Configuration::sslVersion(6);
```

## Ruby

If your environment's default settings do not support TLS 1.2, you may specify a specific version of TLS to use starting in [2.71.0](https://github.com/braintree/braintree_ruby/releases/).

```
Braintree::Configuration.ssl_version = :TLSv1_2
```

## Android

For Android SDK integrations, please verify you have at least one of the latest releases below for payments to continue operating on API 16-19 devices, as described [here](https://github.com/paypal/TLS-update#android).
Expand All @@ -31,8 +47,8 @@ SDK | TLS v1.2 supported version

These languages do not require any SDK upgrades, but you still need to check your production system. Please see the following sections for language-specific support:

* [Ruby](https://github.com/paypal/TLS-update#ruby)
* [PHP](https://github.com/paypal/TLS-update#php)
* [Python](https://github.com/paypal/TLS-update#python)
* [Ruby](https://github.com/paypal/TLS-update#ruby)
* [Node.js](https://github.com/paypal/TLS-update#nodejs)
* [iOS](https://github.com/paypal/TLS-update#ios)
11 changes: 10 additions & 1 deletion PayPal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ SDK | TLSv1.2 supported version
[merchant (merchant 2.x)](https://github.com/paypal/merchant-sdk-dotnet) | Requires [sdk-core 1.7.1 or later](https://github.com/paypal/sdk-core-dotnet/releases)
legacy (merchant 1.x) | Not supported - please [upgrade to merchant 2.x](https://github.com/paypal/merchant-sdk-dotnet/wiki/Upgrade-Process-from-Legacy-Merchant-SDK)

## PHP

If your environment's default settings do not support TLS 1.2, you may specify a specific version of TLS to use starting in [1.6.4](https://github.com/paypal/PayPal-PHP-SDK/releases).

```
# See CURL_SSLVERSION_TLSv1_2 on http://php.net/manual/en/function.curl-setopt.php
PayPalHttpConfig::$defaultCurlOptions[CURLOPT_SSLVERSION] = 6;
```

## Android

For Android SDK integrations, please verify you have at least one of the latest releases below for payments to continue operating on API 16-19 devices, as described [here](https://github.com/paypal/TLS-update#android).
Expand All @@ -47,8 +56,8 @@ SDK | TLSv1.2 supported version

These languages do not require any SDK upgrades, but you still need to check your production system. Please see the following sections for language-specific support:

* [Ruby](https://github.com/paypal/TLS-update#ruby)
* [PHP](https://github.com/paypal/TLS-update#php)
* [Python](https://github.com/paypal/TLS-update#python)
* [Ruby](https://github.com/paypal/TLS-update#ruby)
* [Node.js](https://github.com/paypal/TLS-update#nodejs)
* [iOS](https://github.com/paypal/TLS-update#ios)

1 comment on commit 7d7bfce

@mongoloidkhulmikuki366

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly activate my specific TLS for PHP/Ruby libraries

Please sign in to comment.