<?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 integration of Accept.js in Java in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58106#M32778</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to integrate Accept.js into our website and i&amp;nbsp;was able to get the&amp;nbsp;response.opaqueData.dataValue from the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Document says to use&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create an Accept Payment Transaction but i dont see an example in java for this API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please provide me&amp;nbsp;example in java&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 05:51:57 GMT</pubDate>
    <dc:creator>akshayrpin1</dc:creator>
    <dc:date>2017-05-18T05:51:57Z</dc:date>
    <item>
      <title>integration of Accept.js in Java</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58106#M32778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to integrate Accept.js into our website and i&amp;nbsp;was able to get the&amp;nbsp;response.opaqueData.dataValue from the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Document says to use&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create an Accept Payment Transaction but i dont see an example in java for this API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please provide me&amp;nbsp;example in java&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 05:51:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58106#M32778</guid>
      <dc:creator>akshayrpin1</dc:creator>
      <dc:date>2017-05-18T05:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: integration of Accept.js in Java</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58108#M32780</link>
      <description>&lt;P&gt;If you are using the SDK:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;public static ANetApiResponse run(String apiLoginId, String transactionKey, String opaqueDataValue, BigDecimal amount)&lt;BR /&gt; {&lt;BR /&gt; ApiOperationBase.setEnvironment(Environment.SANDBOX);&lt;BR /&gt; &lt;BR /&gt; MerchantAuthenticationType merchantAuthenticationType = new MerchantAuthenticationType() ;&lt;BR /&gt; merchantAuthenticationType.setName(apiLoginId);&lt;BR /&gt; merchantAuthenticationType.setTransactionKey(transactionKey);&lt;BR /&gt; ApiOperationBase.setMerchantAuthentication(merchantAuthenticationType);&lt;BR /&gt; &lt;BR /&gt; OpaqueDataType op = new OpaqueDataType();&lt;BR /&gt; op.setDataDescriptor("COMMON.ACCEPT.INAPP.PAYMENT");&lt;BR /&gt; op.setDataValue(opaqueDataValue);&lt;BR /&gt; PaymentType paymentOne = new PaymentType();&lt;BR /&gt; paymentOne.setOpaqueData(op);&lt;BR /&gt; &lt;BR /&gt; TransactionRequestType transactionRequest = new TransactionRequestType();&lt;BR /&gt; transactionRequest.setAmount(new BigDecimal(amount));&lt;BR /&gt; transactionRequest.setTransactionType(TransactionTypeEnum.AUTH_CAPTURE_TRANSACTION.value());&lt;BR /&gt; transactionRequest.setPayment(paymentOne);&lt;BR /&gt; CreateTransactionRequest apiRequest = new CreateTransactionRequest();&lt;BR /&gt; apiRequest.setTransactionRequest(transactionRequest);&lt;BR /&gt; CreateTransactionController controller = new CreateTransactionController(apiRequest);&lt;BR /&gt; controller.execute();&lt;BR /&gt; CreateTransactionResponse response = controller.getApiResponse();&lt;BR /&gt; &lt;BR /&gt; if (response!=null) {&lt;BR /&gt; // If API Response is ok, check the transaction response&lt;BR /&gt; if (response.getMessages().getResultCode() == MessageTypeEnum.OK) {&lt;BR /&gt; TransactionResponse result = response.getTransactionResponse();&lt;BR /&gt; if(result.getMessages() != null){&lt;BR /&gt; System.out.println("Successfully created transaction with Transaction ID: " + result.getTransId());&lt;BR /&gt; System.out.println("Response Code: " + result.getResponseCode());&lt;BR /&gt; System.out.println("Message Code: " + result.getMessages().getMessage().get(0).getCode());&lt;BR /&gt; System.out.println("Description: " + result.getMessages().getMessage().get(0).getDescription());&lt;BR /&gt; System.out.println("Auth code : " + result.getAuthCode());&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; System.out.println("Failed Transaction.");&lt;BR /&gt; if(response.getTransactionResponse().getErrors() != null){&lt;BR /&gt; System.out.println("Error Code: " + response.getTransactionResponse().getErrors().getError().get(0).getErrorCode());&lt;BR /&gt; System.out.println("Error message: " + response.getTransactionResponse().getErrors().getError().get(0).getErrorText());&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; System.out.println("Failed Transaction.");&lt;BR /&gt; if(response.getTransactionResponse() != null &amp;amp;&amp;amp; response.getTransactionResponse().getErrors() != null){&lt;BR /&gt; System.out.println("Error Code: " + response.getTransactionResponse().getErrors().getError().get(0).getErrorCode());&lt;BR /&gt; System.out.println("Error message: " + response.getTransactionResponse().getErrors().getError().get(0).getErrorText());&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; System.out.println("Error Code: " + response.getMessages().getMessage().get(0).getCode());&lt;BR /&gt; System.out.println("Error message: " + response.getMessages().getMessage().get(0).getText());&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; System.out.println("Null Response.");&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; return response;&lt;BR /&gt; }&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 09:00:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58108#M32780</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-18T09:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: integration of Accept.js in Java</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58109#M32781</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is only change in providing the&amp;nbsp;OpaqueDataType instead of CreditCard Details.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 10:34:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58109#M32781</guid>
      <dc:creator>akshayrpin1</dc:creator>
      <dc:date>2017-05-18T10:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: integration of Accept.js in Java</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58116#M32788</link>
      <description>&lt;P&gt;Yes, your application uses the nonce to replace the payment details in standard Authorize.Net API calls.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:01:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/integration-of-Accept-js-in-Java/m-p/58116#M32788</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-18T15:01:03Z</dc:date>
    </item>
  </channel>
</rss>

