Skip to content

Commit 2e69585

Browse files
Merge pull request #1 from rkbssl/patch-1
support TLS v1.2 on .NET4.5
2 parents 4cb6d17 + b4094a6 commit 2e69585

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

App_Code/SSLCommerz.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ public class SSLCommerz
3030

3131
public SSLCommerz(string Store_ID, string Store_Pass, bool Store_Test_Mode = false)
3232
{
33-
if (Store_ID != "" && Store_Pass != "")
33+
34+
System.Net.ServicePointManager.SecurityProtocol = (SecurityProtocolType)0x00000C00;
35+
36+
if (Store_ID != "" && Store_Pass != "")
3437
{
3538
this.Store_ID = Store_ID;
3639
this.Store_Pass = Store_Pass;
@@ -315,4 +318,4 @@ public class SSLCommerzValidatorResponse
315318
public string gw_version { get; set; }
316319
public string token_key { get; set; }
317320
}
318-
}
321+
}

0 commit comments

Comments
 (0)