Reply
Highlighted
Member
Posts: 1
Registered: ‎12-07-2017

Reg: Authorize.Net Payment Issue

I have created my sandbox account through this account i am able do the trasaction in my local machine but unable do the transaction in staging server with my sand box credentials.I am getting the below error.
 
error javax.xml.ws.WebServiceException: Failed to access the WSDL at:https://apitest.authorize.net/soap/v1/Service.asmx?WSDL. It failed with: Received fatal alert: protocol_version.
Highlighted
Authorize.Net Expert
Posts: 75
Registered: ‎07-27-2016

Re: Reg: Authorize.Net Payment Issue

Hi @srinivas555

 

On Java 1.8 default TLS protocol is v1.2. On Java 1.7 default is TLS1.0. It must be that your local machine has JAVA 8 but in the staging server its still using JAVA 7.

 

As in Authorize.Net Sandbox Endpoints like (https://apitest.authorize.net/soap/v1/Service.asmx?WSDL) TLS 1.0 is disabled, thus you are getting error : Received fatal alert: protocol_version.

 

You will explicitly need to set TLS v1.2 in the staging server, you can try

 

System.setProperty("https.protocols", "TLSv1");

 

Or look into this more options : https://stackoverflow.com/questions/39157422/how-to-enable-tls-1-2-in-java-7

 

Highlighted
Posts: 2,765
Topics: 57
Kudos: 248
Blog Posts: 67
Registered: ‎12-05-2011

Re: Reg: Authorize.Net Payment Issue

@srinivas555

 

Our sandbox requires a TLS 1.2 connection.  Please make certain your system is configured properly.

 

Richard