razorpay / razorpay-dotnet-testapp

Test app for .net integration
MIT License
8 stars 17 forks source link

razorpay payment gateway integration #7

Open virendrazak opened 5 years ago

virendrazak commented 5 years ago

Razorpay.Api.Order order = client.Order.Create(input); after this function SocketException: An existing connection was forcibly closed by the remote host

kapil708 commented 5 years ago

@virendrazak didi you find any solution

adukale commented 4 years ago

@virendrazak @kapil708 You need to add try catch block for that. Here is the code: try { Razorpay.Api.Order order = client.Order.Create(input); orderId = order["id"].ToString(); } catch (Exception ex) { Console.WriteLine(ToString()); }

nirmalbisht commented 4 years ago

@adukale this does not break code with issue is still open

Krishnatklm commented 4 years ago

Just add online in the page load

ServicePointManager.SecurityProtocol=SecurityProtocolType.Tls12;

nirmalbisht commented 4 years ago

Just add online in the page load

ServicePointManager.SecurityProtocol=SecurityProtocolType.Tls12;

Thanks