Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpWebRequest exception #2

Open
usernamehoax opened this issue Nov 7, 2015 · 0 comments
Open

HttpWebRequest exception #2

usernamehoax opened this issue Nov 7, 2015 · 0 comments

Comments

@usernamehoax
Copy link

I'm using this library on my local computer to develop sandbox payments. I was unable to proceed with the request made to payment api. To be more precise , in TwoCheckoutUtil, Request method Request.GetResponseStream was causing an exception with inner exception : "authentication failed because the remote party has closed the transport stream". For development purposes I'm using .NET WebAPI server with self signed certificate on my machine. To resolve this issue I had to ammend this code at the beginning of the Request method:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant