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.
source to share
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.
source to share
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
source to share
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
source to share