braintree / braintree_aspnet_example

An example Braintree integration in the ASP.NET framework
MIT License
57 stars 50 forks source link

Could not create SSL/TLS secure channel. #8

Closed marcolsh closed 7 years ago

marcolsh commented 7 years ago

As of 2016.12.14, we encountered an issue generate client token on a machine without SSL, such as SANDBOX or testing environment.

Tried your example, its great and thanks for sharing and teaching. Submitting this issue would like to question about should example add following 2 lines before generate the token? so that the example would works great as it download.

ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

Thank you.

danakatz commented 7 years ago

Hi @marcolsh,

Apologies for the interruption here! The Braintree sandbox environment now requires TLSv1.2 connections, which are supported starting with version 3.1.0 of the Braintree .NET SDK. The example is currently using 2.59.0.

I just opened a PR (#9) to get everything updated -- feel free to make those changes locally in the meantime!

marcolsh commented 7 years ago

Hi danakatz,

Great thanks for your reply and corrected my misunderstanding. :+1:

github-john-doe commented 7 years ago

Why not merge the pull request?