Skip to content

Commit 160ad83

Browse files
authored
Update HttpUtility.cs
specify TLS 1.2
1 parent b385282 commit 160ad83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Authorize.NET/Util/HttpUtility.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public static ANetApiResponse PostData<TQ, TS>(AuthorizeNet.Environment env, TQ
6666
// Get the response
6767
String responseAsString = null;
6868
Logger.debug(string.Format("Retreiving Response from Url: '{0}'", postUrl));
69+
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
6970
using (var webResponse = webRequest.GetResponse())
7071
{
7172
Logger.debug(string.Format("Received Response: '{0}'", webResponse));

0 commit comments

Comments
 (0)