Authorize.net: main connection was closed

I am working on a project where I am using Authorize.Net to process payments.

It worked fine, but today I keep getting the error " Connected connection was closed: there was an unexpected send error while sending any API function. " Does this issue belong to the authorize.net side?

I am working on test mode using the sandbox tab.

+3


source to share


4 answers


Add this line at the very beginning of your code



ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

      

+4


source


The developer sandbox no longer accepts connections using TLS 1.0 or 1.1 . Instead, you need to configure your system to use TLS 1.2.



+3


source


The developer sandbox no longer accepts connections using TLS 1.0 or 1.1. Instead, you need to configure your system to use TLS 1.2.

To do this, just add this line System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12

before this line ApiOperationBase (from ANetApiRequest, ANetApiResponse) .RunEnvironment = AuthorizeNet.Environment.SANDBOX

For Visual Basic.Net programmers

+2


source


seems to be the only problem in sandbox environment. we are facing the same problem. pointed to "Production with account in TEST mode" and did not notice any problems. ApiOperationBase.RunEnvironment = AuthorizeNet.Environment.PRODUCTION;

Opened ticket from authorize.net, but no response yet; will keep you informed

+1


source







All Articles