Handshake Error When using External API

SUGGESTED

Hi All,

We are working on the requirement to create payment gateway integration between x3 and third party API, to build the connectivity with the third party API, we have created the JAR that includes third Party API JAR and using the same from X3.

 We are calling the Rest API merchant webservices, project use TSL certificates, when we were trying to run the project directly from Java we got the handshake error which we resolved by upgrading the Java to version 1.8 and enabling the security TSL, please refer the below screen shot. Also added the below code in our project.

Now we are getting the same error while we are trying to run the JAR from Sage X3, but it is running without any error when trying to run externally or directly from Java. We tried upgrading the Java Bridge server to version in Sage X3 upgraded to the latest Java Bridge patch of version 11. Current Java Bridge version is JAV_V1.223.1.0(17J)

 We followed below steps to call the 3rd party webservice from Sage X3:

1)Add JAVAAPI.jar file to the eclipse workspace, whereas the Client provided us with JAVAAPI.jar to integrate with the merchant gateway of the third party site and inherited function to include in our JAR file.

2)Placed the Build JAR file on the Java bridge server.JAV_V1.223.1.0(17J)

3)After the successful connection, we are getting the below error after calling during triggering the function to add details on the Merchant website from our code. But same code is getting executed independently directly  through Eclipse without handshake error.

 Have anyone got this issue before, please let us know what could be the solution.