Reply
Member
Posts: 8
Registered: ‎12-02-2013
Accepted Solution

Card Type Missing from Java Reporting API Result

We are using the Java API to retrieve transaction details so that we can build some custom reports for our customers.

 

During the process of building out one of the reports, I noticed that the CardType was always coming back as unknown.

 

That issue turned out to be because of the following line of the net.authorize.reporting.Result:

 

creditCard.setCardType(CardType.findByValue(getElementText(credit_card_el, AuthNetField.ELEMENT_ACCOUNT_TYPE.getFieldName())));

 

which pulls the "accountType" value out of the message and then maps it to a CardType value. The problem is that on a credit transaction, the value comes from this field "cardType".

 

So, I added a new value to the AuthNetField enum:

 

ELEMENT_CARD_TYPE("cardType")

 

And then changed the line above to be:

 

creditCard.setCardType(CardType.findByValue(getElementText(credit_card_el, AuthNetField.ELEMENT_CARD_TYPE.getFieldName())));

 

Please update the Java API at your earliest convenience so that I can run against an official version.

 

Also, please take a look at the fix I submitted for the missing for incorrect shipping/billing information in the java reporting sdk.

 

http://community.developer.authorize.net/t5/Integration-and-Testing/Java-SDK-TransactionDetails-isFu...


Accepted Solutions
Solution
Accepted by topic author bkiefer
‎08-21-2015 01:58 AM
Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: Card Type Missing from Java Reporting API Result

Hello,

 

This issue is now resolved and an updated SDK is available from GitHub: https://github.com/AuthorizeNet/sdk-java/

 

Richard

View solution in original post


All Replies
Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: Card Type Missing from Java Reporting API Result

[ Edited ]

Hello bkiefer,

 

I've forwarded your report to our product development team for analysis.  

 

I'd recommend subscribing to this topic so that you'll be alerted via email for updates. 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

 

 

Member
Posts: 8
Registered: ‎12-02-2013

Re: Card Type Missing from Java Reporting API Result

Thank you. I'm subscribed now and look forward to seeing a fix come through.

Solution
Accepted by topic author bkiefer
‎08-21-2015 01:58 AM
Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: Card Type Missing from Java Reporting API Result

Hello,

 

This issue is now resolved and an updated SDK is available from GitHub: https://github.com/AuthorizeNet/sdk-java/

 

Richard

Member
Posts: 1
Registered: ‎07-13-2014

Re: Card Type Missing from Java Reporting API Result

Thank you !!!

Member
Posts: 8
Registered: ‎02-14-2013

Re: Card Type Missing from Java Reporting API Result

Thanks for fixing the issue, but why does the Authorize.NET SDK page still have the buggy JAVA code?

http://developer.authorize.net/api/transaction_details/

 

 

Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: Card Type Missing from Java Reporting API Result

Hell @pahcal123 

 

I'm sorry to hear you're having issues with our SDKs.  You are more than welcome to submit an issue on GitHub and our development team will look into them.

Richard