<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58028#M32705</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have tried to connect the server with HTTP get request to &lt;A href="https://apitest.authorize.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://apitest.authorize.net&lt;/A&gt;&amp;nbsp;and getting response code 403 which means&amp;nbsp; &lt;A href="https://apitest.authorize.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://apitest.authorize.net&lt;/A&gt;&amp;nbsp;is accessible to me. And it seems working as expected and taking correct TLSv1.2.&lt;/P&gt;&lt;PRE&gt;URL obj = new URL(url);
HttpsURLConnection con = (HttpsURLConnection) obj.openConnection();
// optional default is GET
con.setRequestMethod("GET");
&lt;BR /&gt;SSLContext sc = SSLContext.getInstance("TLSv1.2");
sc.init(null, null, new java.security.SecureRandom());
con.setSSLSocketFactory(sc.getSocketFactory());
		&lt;BR /&gt;int responseCode = con.getResponseCode();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with the below API access is getting the exception as mentioned in earlier post.&lt;/P&gt;&lt;PRE&gt;GetHostedPaymentPageController controller = new GetHostedPaymentPageController(apiRequest);
controller.execute();
       
        GetHostedPaymentPageResponse response = new GetHostedPaymentPageResponse();
		response = controller.getApiResponse();&lt;/PRE&gt;&lt;P&gt;Could you please guide me how to debug into this API access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way by which i can verify supported ciphers from my setup which is same as in AN server.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 08:18:11 GMT</pubDate>
    <dc:creator>raviparmarce88</dc:creator>
    <dc:date>2017-05-10T08:18:11Z</dc:date>
    <item>
      <title>GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58016#M32693</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;This is really looks like a blocker for development.&lt;/P&gt;&lt;P&gt;After TLS disablement my GetHostedPaymentPage* API stoped working.&lt;/P&gt;&lt;P&gt;It is returning null response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:Here I am using Jdk1.7 and set TLSv1.2 in JVM arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is as same as given by AN in developer guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the exception I am getting :&lt;/P&gt;&lt;PRE&gt;00A0: 00 16 00 0B 00 02 01 00                            ........
pool-1-thread-1, received EOFException: error
pool-1-thread-1, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
pool-1-thread-1, SEND TLSv1 ALERT:  fatal, description = handshake_failure
pool-1-thread-1, WRITE: TLSv1 Alert, length = 2
[Raw write]: length = 7
0000: 15 03 01 00 02 02 28                               ......(
pool-1-thread-1, called closeSocket()
pool-1-thread-1, IOException in getSession():  javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
pool-1-thread-1, called close()
pool-1-thread-1, called closeInternal(true)
pool-1-thread-1, called close()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 12:33:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58016#M32693</guid>
      <dc:creator>raviparmarce88</dc:creator>
      <dc:date>2017-05-09T12:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58022#M32699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21421"&gt;@raviparmarce88&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you verify that your setup also supports the ciphers in use on our server? You can see the ciphers used in sandbox here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ssllabs.com/ssltest/analyze.html?d=apitest.authorize.net" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.ssllabs.com/ssltest/analyze.html?d=api&lt;WBR /&gt;test.authorize.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you also maybe code up a little test to determine if you can even reach the server using TLS 1.2? If you could just cause your code to do an HTTP get request to &lt;A href="https://apitest.authorize.net" target="_blank"&gt;https://apitest.authorize.net&lt;/A&gt;, you should get back an HTTP 403 status and some HTML showing a "Forbidden" page. If you get that but API access isn't working, we can troubleshoot some more. If you can't even connect to the server at all, that's a different level of troubleshooting on your end.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 17:11:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58022#M32699</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-05-09T17:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58028#M32705</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have tried to connect the server with HTTP get request to &lt;A href="https://apitest.authorize.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://apitest.authorize.net&lt;/A&gt;&amp;nbsp;and getting response code 403 which means&amp;nbsp; &lt;A href="https://apitest.authorize.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://apitest.authorize.net&lt;/A&gt;&amp;nbsp;is accessible to me. And it seems working as expected and taking correct TLSv1.2.&lt;/P&gt;&lt;PRE&gt;URL obj = new URL(url);
HttpsURLConnection con = (HttpsURLConnection) obj.openConnection();
// optional default is GET
con.setRequestMethod("GET");
&lt;BR /&gt;SSLContext sc = SSLContext.getInstance("TLSv1.2");
sc.init(null, null, new java.security.SecureRandom());
con.setSSLSocketFactory(sc.getSocketFactory());
		&lt;BR /&gt;int responseCode = con.getResponseCode();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with the below API access is getting the exception as mentioned in earlier post.&lt;/P&gt;&lt;PRE&gt;GetHostedPaymentPageController controller = new GetHostedPaymentPageController(apiRequest);
controller.execute();
       
        GetHostedPaymentPageResponse response = new GetHostedPaymentPageResponse();
		response = controller.getApiResponse();&lt;/PRE&gt;&lt;P&gt;Could you please guide me how to debug into this API access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way by which i can verify supported ciphers from my setup which is same as in AN server.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 08:18:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58028#M32705</guid>
      <dc:creator>raviparmarce88</dc:creator>
      <dc:date>2017-05-10T08:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58030#M32707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally I have concluded on workaround for this issue.&lt;/P&gt;&lt;P&gt;I have added below code snippet in&amp;nbsp;GetAnAcceptPaymentPage API calling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;final SSLContext sc = SSLContext.getInstance("TLSv1.2");
			sc.init(null,null, new java.security.SecureRandom());
			final SSLSocketFactory socketFactory = sc.getSocketFactory();
			HttpsURLConnection.setDefaultSSLSocketFactory(socketFactory);&lt;/PRE&gt;&lt;P&gt;and it is working fine with jdk1.7 and TLSv1.2.(Lot more to resolve like this way!!!! :)....)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if this is&amp;nbsp;concrete solutions to get the Token from AN server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really&amp;nbsp;appreciate &amp;nbsp;your help and quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 13:24:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58030#M32707</guid>
      <dc:creator>raviparmarce88</dc:creator>
      <dc:date>2017-05-10T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58421#M33076</link>
      <description />
      <pubDate>Mon, 12 Jun 2017 23:32:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58421#M33076</guid>
      <dc:creator>hexaplus</dc:creator>
      <dc:date>2017-06-12T23:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58422#M33077</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are having a very similar issue to Ravi, but we are using the precompiled libraries (compile 'net.authorize:anet-java-sdk:1.8.3'):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Connection reset': 'null', '[java.net.SocketInputStream.read(SocketInputStream.java:196),
java.net.SocketInputStream.read(SocketInputStream.java:122),
sun.security.ssl.InputRecord.readFully(InputRecord.java:442),
sun.security.ssl.InputRecord.read(InputRecord.java:480),
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946),
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344), 
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371), 
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355),
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:543),
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:409),
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177),
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304),
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611),
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446),
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882), 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82),
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107), 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55),
net.authorize.util.HttpClient.executeXML(HttpClient.java:222), 
net.authorize.Merchant.postTransaction(Merchant.java:295), 
net.authorize.Merchant$postTransaction$1.call(Unknown Source),&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We tried the seting the default factory both in a static block and directly before&amp;nbsp;the call &amp;nbsp;to create merchant and in a static block:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;final SSLContext sc = SSLContext.getInstance("TLSv1.2");
			sc.init(null,null, new java.security.SecureRandom());
			final SSLSocketFactory socketFactory = sc.getSocketFactory();
			HttpsURLConnection.setDefaultSSLSocketFactory(socketFactory);&lt;/PRE&gt;&lt;PRE&gt; Merchant.createMerchant(anetEnvironment, apiLoginId, transactionKey);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Our JVM is OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 23:59:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58422#M33077</guid>
      <dc:creator>hexaplus</dc:creator>
      <dc:date>2017-06-12T23:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: GetAcceptPaymentPage API is not working even after change of Jdk 1.7 and TLSv1.2</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58429#M33084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21871"&gt;@hexaplus&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You reference a 1.8.3 version in your post. Any improvement if you try with the latest version (1.9.3)?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:04:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not-working-even-after-change-of-Jdk/m-p/58429#M33084</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-06-13T17:04:27Z</dc:date>
    </item>
  </channel>
</rss>

