- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
โ07-10-2013 09:32 PM - edited โ07-10-2013 09:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
โ07-16-2013 11:52 AM