<?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: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/37125#M20592</link>
    <description>&lt;P&gt;An FYI if anyone else needs this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;net.authorize.reporting.Result -&amp;nbsp;&lt;SPAN style="line-height: 16px;"&gt;Line 356 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;customer.setShipTo(&lt;STRONG&gt;billToAddress&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;If you need this fixed, check out the SDK, and change the line to:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&lt;SPAN&gt;customer.setShipTo(&lt;STRONG&gt;shipToAddress&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2013 00:31:03 GMT</pubDate>
    <dc:creator>bkiefer</dc:creator>
    <dc:date>2013-12-03T00:31:03Z</dc:date>
    <item>
      <title>Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33798#M18298</link>
      <description>&lt;P&gt;Does anyone know under what conditions &lt;STRONG&gt;TransactionDetails.isFullTransactionDetails()&lt;/STRONG&gt; will return false? &amp;nbsp;This is from the Java Reporting API SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having an issue where a not-insignificant number of transactions are coming back missing data; specifically, TransactionDetails.getCustomer() is returning &lt;EM&gt;null&lt;/EM&gt;, which is problematic as I cannot access name/address data. &amp;nbsp;In these cases, isFullTransactionDetails() will return false. &amp;nbsp;This is occurring even on successfully-settled transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's even more interesting is that I've tested these same incomplete transactions in the PHP SDK, and am receiving back the appropriate data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 21:14:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33798#M18298</guid>
      <dc:creator>seanc_cole</dc:creator>
      <dc:date>2013-04-01T21:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33803#M18303</link>
      <description>&lt;P&gt;Might need to debug the source, probably a problem with the SDKs.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 23:44:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33803#M18303</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-01T23:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33807#M18307</link>
      <description>&lt;P&gt;That's what I was worried about; from digging through the forums, it looks like that Java SDK is not widely-used; plus, given the relative newness of the Reporting API, it could very well be buggy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll dive into the SDK source and debug there, if I come up with anything I'll post back for anyone who may run into this in the future (and hopefully create an action item for the SDK devs).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 14:42:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33807#M18307</guid>
      <dc:creator>seanc_cole</dc:creator>
      <dc:date>2013-04-02T14:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33808#M18308</link>
      <description>&lt;P&gt;Ok, I've dug through the SDK source, and it is indeed a bug in the Java SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem lies in &lt;STRONG&gt;net.authorize.reporting.Result&lt;/STRONG&gt;. &amp;nbsp;This class reads the BasicXmlDocument that's built from the parsed XML response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bug is in the importTransactionDetails() method, which pulls the various data from the XML nodes and populates the Result object. &amp;nbsp;What's happening is that this method is looking for a &lt;EM&gt;customer&lt;/EM&gt; node, and &lt;U&gt;if and only if&lt;/U&gt; a &lt;EM&gt;customer&lt;/EM&gt; node exists, will it look for a &lt;EM&gt;billto&lt;/EM&gt; and &lt;EM&gt;shipTo&lt;/EM&gt; node. &amp;nbsp;As a result, not all available data fields are being populated, and presumably (by some mechanism, I haven't dug completely into it) the isFullTransactionDetails flag is set to false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;&lt;EM&gt;billto&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;shipTo&amp;nbsp;&lt;/EM&gt;are not children of&amp;nbsp;&lt;EM&gt;customer &lt;/EM&gt;(they are children of the &lt;EM&gt;transaction&lt;/EM&gt; container), and a&amp;nbsp;&lt;EM&gt;customer&lt;/EM&gt;&amp;nbsp;node does not necessarily always get sent (which may be a bug in the API endpoint, itself -- but that's a separate subject).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A workaround would be to query the xml response itself (this example extracts only the billTo node, but a similar method could extract the shipTo node).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ReportingDetails reportingDetails = result.getReportingDetails();
Transaction t = result.getTarget();
BasicXmlDocument xml = t.getCurrentResponse();

NodeList transactions_list = xml.getDocument().getElementsByTagName(AuthNetField.ELEMENT_TRANSACTION.getFieldName());
Element transaction_el =(Element)transactions_list.item(0);

NodeList bill_to_list = transaction_el.getElementsByTagName(AuthNetField.ELEMENT_BILL_TO.getFieldName());

String elFirstName = "";
String elLastName = "";
String elCompany = "";
String elAddress = "";
String elCity = "";
String elState = "";
String elZip = "";
String elCountry = "";
String elPhoneNumber = "";
String elFaxNumber = "";

if(bill_to_list != null &amp;amp;&amp;amp; bill_to_list.getLength() == 1) {
	Element address_el = (Element)bill_to_list.item(0);
	
	elFirstName = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_FIRST_NAME.getFieldName());
	elLastName = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_LAST_NAME.getFieldName());
	elCompany = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_COMPANY.getFieldName());
	elAddress = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_ADDRESS.getFieldName());
	elCity = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_CITY.getFieldName());
	elState = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_STATE.getFieldName());
	elZip = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_ZIP.getFieldName());
	elCountry = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_COUNTRY.getFieldName());
	elPhoneNumber = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_PHONE_NUMBER.getFieldName());
	elFaxNumber = BasicXmlDocument.getElementText(address_el, AuthNetField.ELEMENT_FAX_NUMBER.getFieldName());
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Apr 2013 17:07:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33808#M18308</guid>
      <dc:creator>seanc_cole</dc:creator>
      <dc:date>2013-04-02T17:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33809#M18309</link>
      <description>&lt;P&gt;EDIT: I'd like to note that this is occurring in version 1.4.6 of the SDK, presumably the latest that's available.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 17:36:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33809#M18309</guid>
      <dc:creator>seanc_cole</dc:creator>
      <dc:date>2013-04-02T17:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/37123#M20591</link>
      <description>&lt;P&gt;Agree. This is still broken. Any ETA on a fix? I'm running against my own version of the code right now.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 00:06:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/37123#M20591</guid>
      <dc:creator>bkiefer</dc:creator>
      <dc:date>2013-12-03T00:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/37125#M20592</link>
      <description>&lt;P&gt;An FYI if anyone else needs this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;net.authorize.reporting.Result -&amp;nbsp;&lt;SPAN style="line-height: 16px;"&gt;Line 356 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;customer.setShipTo(&lt;STRONG&gt;billToAddress&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;If you need this fixed, check out the SDK, and change the line to:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&lt;SPAN&gt;customer.setShipTo(&lt;STRONG&gt;shipToAddress&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 00:31:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/37125#M20592</guid>
      <dc:creator>bkiefer</dc:creator>
      <dc:date>2013-12-03T00:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: TransactionDetails.isFullTransactionDetails() returning false. Why?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/40202#M21864</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue is now resolved and an updated SDK is available from GitHub:&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-java/" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-java/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:52:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/40202#M21864</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2014-04-02T13:52:45Z</dc:date>
    </item>
  </channel>
</rss>

