Hi,
I am integrating authorize.net payment using JAVA
For it, I use the jsp code available at https://developer.authorize.net/integration/fifteenminutes/java/#custom
under Advanced Integration Method and in 'Card Not Present Instruction' tab.
After run the jsp code I see below error :
net.authorize.aim.Result@179b3d1b Error
RRC_0_0 : null
And after debug, I found it is throwing exception java.net.UnknownHostException: test.authorize.net.
This I get because firewall is enabled on my system. If somehow, I set the Proxy in Authorize.Net SDK, then can get rid of this error. I need to know, if the SDK can accept the proxy pro-grammatically. Any information sharing on it would be great help.
Many Thanks,
Jitendra
Solved! Go to Solution.
06-10-2014 04:54 AM
The latest version of the SDK should support proxies without any code changes. There are several constants that have been added to the SDK and are used by the HttpClient class for this purpose.
The three you want to focus on are:
HTTPS_USE_PROXY (boolean)
HTTPS_PROXY_HOST (string)
HTTPS_PROXY_PORT (int)
If your proxy requires authentication, then that will require modification to the SDK.
06-10-2014 02:35 PM
The latest version of the SDK should support proxies without any code changes. There are several constants that have been added to the SDK and are used by the HttpClient class for this purpose.
The three you want to focus on are:
HTTPS_USE_PROXY (boolean)
HTTPS_PROXY_HOST (string)
HTTPS_PROXY_PORT (int)
If your proxy requires authentication, then that will require modification to the SDK.
06-10-2014 02:35 PM
Thanks Trevor for prompt response with valuable information.
Many Thanks,
Jitendra
06-11-2014 01:17 AM