AuthorizeNet / sdk-dotnet

.Net SDK for Authorize.Net API
Other
149 stars 206 forks source link

Future - Fix for Issue 234 - TLS 1.2 must be set before HttpWebRequest is created #249

Closed cforbesywam closed 5 years ago

cforbesywam commented 5 years ago

The TLS 1.2 Setting must come before the HttpWebRequest is created.

This is causing the first connection attempt to fail with a 'could not create secure connection' error. By moving the TLS 1.2 setting before the web request is create fixes this issue.