- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to capture response code/message ...as return object is null
Hi,
I use AIM to integrate into our website. However, as I enter random credit card number...I got result object as null ...How could I got the response code/message.
--------------------
Result<Transaction> result = (Result<Transaction>) Aus.chargeCard(cust,order,creditCard,cart.getTotal());
if ((result != null)&&(result.isApproved()))
{
logger.info("Response :"+result.getResponseText());
}
else
// how I got response code/message here as result == null. I did see message printing out on screen as invalid credit card.
------------------
Thanks
โ07-26-2012 11:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FYi.
AuthorizeService Aus = new AuthorizeService();
...
โ07-26-2012 12:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which language SDKs is this?
โ07-26-2012 12:37 PM - edited โ07-26-2012 12:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is in Java...
โ07-26-2012 07:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not seeing where this chargeCard method is, it that custom code?
โ07-27-2012 04:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
should be there...I got from sample code somewhere..and dont know where it is at now...but if I put the right credit card number, process go through....
โ07-27-2012 05:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might be using a early version that might been fixed in the latest version.
โ07-27-2012 05:48 PM

