cancel
Showing results for 
Search instead for 
Did you mean: 

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

mikevu408
Member
6 REPLIES 6

FYi.

    AuthorizeService Aus = new AuthorizeService();
    ...

mikevu408
Member

Which language SDKs is this?

This is in Java...

Not seeing where this chargeCard method is, it that custom code?

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....

You might be using a early version that might been fixed in the latest version.