Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎08-17-2011

CIM Java API Card Code not working

I am using the java api and CIM system.  When I attempt to update a users payment profile we want to verify the cc information so we do:

 

transaction.setValidationMode(ValidationModeType.LIVE_MODE);

as well as:

 

CreditCard creditCard = CreditCard.createCreditCard();

creditCard.setCardCode(user.getSecurityCode());

 

 

among other pertinent information.  The problem is the card code is not being sent in the xml request so authorize.net is not checking this even though we want it to.  I looked into the java api code and when it builds a updateCustomerPaymentProfile transaction it calls these methods:

 

addAuthentication(document);
addRefId(document);
addCustomerProfileId(document);
addPaymentProfiles(document, null);
addValidationMode(document);

 

None of which add the cardCode to the request xml.  I tried modifying this and adding it myself but I get an E0003 error with the cardCode node being in the wrong spots.  The CIM XML guide says we should be able to pass in the card code.  Anyone know what's going on with this?

 

Thank you for your help.