cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain "nameOnAccount" Via TransactionDetailsAPI With Java?

I'm using the Java SDK to process credit card and eCheck transactions as well as obtain transaction history.  Up until today, the integration has been flawless.

 

I'm trying to obtain the "nameOnAccount" variable for eCheck Transactions (using the TransactionDetails API).  Here is my code:

 

// The "transactionDetail" variable has already been assigned as type "TransactionDetails"

String name             = "";
String paymentType  = transactionDetail.getAccountType().getValue();

if (paymentType.equals("eCheck")) {name = transactionDetail.getPayment().getBankAccount().getBankAccountName();}
else {name = transactionDetail.getFirstName() + " " + transactionDetail.getLastName();}

 

When the paymentType equals "eCheck", one of the methods used is returning a null value (I'm still investigating which one).  Has anyone done this successfully?  If so, can you paste a quick code example?

JabariHunt
Member
1 REPLY 1

Hello JabariHunt,

It doesn't look like anyone has responded yet, but someone still may have feedback on what you're looking for. I'd recommend subscribing to this topic so that you'll be alerted via email if anyone else from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies to your post.

Thanks,

Richard

RichardH
Administrator Administrator
Administrator