<?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: how to get transaction Id via Java AIM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/how-to-get-transaction-Id-via-Java-AIM/m-p/26884#M14252</link>
    <description>&lt;P&gt;Have figured how to get transaction ID&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2012 06:58:43 GMT</pubDate>
    <dc:creator>loryhoush1</dc:creator>
    <dc:date>2012-06-01T06:58:43Z</dc:date>
    <item>
      <title>how to get transaction Id via Java AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/how-to-get-transaction-Id-via-Java-AIM/m-p/26880#M14250</link>
      <description>&lt;P&gt;I am using Java and AIM integration method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After submit &amp;nbsp;AUTH ONLY transaction successfully, I couldn't get transaction ID ( I try to use transaction.getTransactionId()) which always return "". &amp;nbsp;Can somebody help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code looks like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;order = getOrder(myOrder);&lt;BR /&gt;CreditCard creditCard = getCreditCard(myCreditCard);&lt;/P&gt;&lt;P&gt;// create transaction&lt;BR /&gt;Transaction transaction = merchant.createAIMTransaction(TransactionType.AUTH_ONLY,&lt;BR /&gt;order.getTotalAmount());&lt;BR /&gt;// create customer&lt;BR /&gt;Customer customer = Customer.createCustomer();&lt;BR /&gt;customer.setFirstName(myCustomer.getFirstName());&lt;BR /&gt;customer.setLastName(myyCustomer.getLastName());&lt;BR /&gt;customer.setAddress(myOrder.getBillingStreetAddress());&lt;BR /&gt;customer.setCity(myOrder.getBillingCity());&lt;BR /&gt;customer.setState(myOrder.getBillingState());&lt;BR /&gt;customer.setZipPostalCode(myOrder.getBillingPostcode());&lt;/P&gt;&lt;P&gt;transaction.setCustomer(customer);&lt;BR /&gt;transaction.setOrder(order);&lt;BR /&gt;transaction.setCreditCard(creditCard);&lt;/P&gt;&lt;P&gt;result = (Result&amp;lt;Transaction&amp;gt;) merchant.postTransaction(transaction);&lt;BR /&gt;paymentResponse = PaymentResponse.toPaymentResponse(result);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;String transactionId = transaction.getTransactionId()&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 05:52:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/how-to-get-transaction-Id-via-Java-AIM/m-p/26880#M14250</guid>
      <dc:creator>loryhoush1</dc:creator>
      <dc:date>2012-06-01T05:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to get transaction Id via Java AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/how-to-get-transaction-Id-via-Java-AIM/m-p/26882#M14251</link>
      <description>&lt;P&gt;BTW, I have changed my account to LIVE mode by Account -&amp;gt;Settings -&amp;gt;Test Mode, and x_rest_request= FALSE&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the whole request MAP looks like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{x_country=, x_delim_data=TRUE, x_fax=, x_tax_exempt=FALSE, x_city=Foster City, x_cust_id=, x_relay_response=FALSE, x_company=, x_version=3.1, x_address=sss, x_amount=21493.17, x_po_num=, x_last_name= , x_type=AUTH_ONLY, x_zip=94404, x_encap_char=, x_customer_ip=, x_tran_key=xxxxx, x_description=ORDER_DESCRIPTION, x_allow_partial_Auth=FALSE, x_phone=, x_state=CA, x_login=xxxxx, x_first_name= , x_test_request=FALSE, x_invoice_num=, x_delim_char=|, x_email=, x_line_item=30&amp;lt;|&amp;gt;African+Black+Soap&amp;lt;|&amp;gt;ORDER_ITEM_DESCRIPTION&amp;lt;|&amp;gt;2010.00&amp;lt;|&amp;gt;20079.90&amp;lt;|&amp;gt;FALSE}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 05:58:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/how-to-get-transaction-Id-via-Java-AIM/m-p/26882#M14251</guid>
      <dc:creator>loryhoush1</dc:creator>
      <dc:date>2012-06-01T05:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to get transaction Id via Java AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/how-to-get-transaction-Id-via-Java-AIM/m-p/26884#M14252</link>
      <description>&lt;P&gt;Have figured how to get transaction ID&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 06:58:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/how-to-get-transaction-Id-via-Java-AIM/m-p/26884#M14252</guid>
      <dc:creator>loryhoush1</dc:creator>
      <dc:date>2012-06-01T06:58:43Z</dc:date>
    </item>
  </channel>
</rss>

