<?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: Reporting API First/Last Name missing in many records in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reporting-API-First-Last-Name-missing-in-many-records/m-p/33810#M18310</link>
    <description>&lt;P&gt;In another thread, I found out that this is a bug in the Java SDK itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33808/highlight/false#M18308"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33808/highlight/false#M18308&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2013 17:37:29 GMT</pubDate>
    <dc:creator>seanc_cole</dc:creator>
    <dc:date>2013-04-02T17:37:29Z</dc:date>
    <item>
      <title>Reporting API First/Last Name missing in many records</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reporting-API-First-Last-Name-missing-in-many-records/m-p/33750#M18254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Reporting API SDK in Java, and frequently (around 20% of transactions) I'm unable to access the payer's first or last names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of them are from ARB, but occasionally one will be a standard one-off payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the snippet I've copied below, I first attempt to get a Customer object from the TransactionDetails object; if that comes back NULL (which it does in most (all?) of these cases), I'm also attempting to use the more-straightforward TransactionDetails.getFirstName() and getLastName() which typically don't return anything, either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a Customer object exists, I'll first try obtaining a name pair from the billing Address object, and failing that, from the shipping Address object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's strange is that, if I look up the tranactions on the auth.net site, the names will be displayed in the appropriate fields. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must be missing something -- what is it? &amp;nbsp;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  // trxDetails is a TransactionDetails object
Customer customer = trxDetails.getCustomer();
if(customer != null){
	customerID = (customer.getId() == null) ? "": customer.getId();
	Address address = customer.getBillTo();
	if(address != null){
		firstName = (address.getFirstName() == null) ? "" : address.getFirstName();
		lastName = (address.getLastName() == null) ? "" : address.getLastName();	
	}
	else{
		address = customer.getShipTo();
		if(address != null){
			firstName = (address.getFirstName() == null) ? "" : address.getFirstName();
			lastName = (address.getLastName() == null) ? "" : address.getLastName();
		}
	}
}			

if(firstName.equals("")){
	firstName = (trxDetails.getFirstName() == null) ? "" : trxDetails.getFirstName();
	lastName = (trxDetails.getLastName() == null) ? "" : trxDetails.getLastName();
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Mar 2013 16:10:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reporting-API-First-Last-Name-missing-in-many-records/m-p/33750#M18254</guid>
      <dc:creator>seanc_cole</dc:creator>
      <dc:date>2013-03-28T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting API First/Last Name missing in many records</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reporting-API-First-Last-Name-missing-in-many-records/m-p/33810#M18310</link>
      <description>&lt;P&gt;In another thread, I found out that this is a bug in the Java SDK itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33808/highlight/false#M18308"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFullTransactionDetails-returning/m-p/33808/highlight/false#M18308&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 17:37:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reporting-API-First-Last-Name-missing-in-many-records/m-p/33810#M18310</guid>
      <dc:creator>seanc_cole</dc:creator>
      <dc:date>2013-04-02T17:37:29Z</dc:date>
    </item>
  </channel>
</rss>

