Reply
Highlighted
Member
Posts: 4
Registered: ‎12-20-2013
Accepted Solution

Android SDK with CIM not sending CCV

Similar to this post http://community.developer.authorize.net/t5/Integration-and-Testing/Java-SDK-with-CIM-not-sending-CC...

 

I am tying to charge a credit card from CIM (CREATE_CUSTOMER_PROFILE_TRANSACTION) which I got to work, but when I try a wrong CCV the transaction does not fail.

 

So I made CCV required (through Payment Form -> Form Fields) and I started receiving error E00027 "Card Code is required."  when either entering correct or incorrect code.

 

I tried the method "toAuthNetPOSTString" to see the generated XML and the CCV is never there:

 

<?xml version="1.0" encoding="UTF-8"?>
<createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
    <merchantAuthentication>
        ...
    </merchantAuthentication>
    <transaction>
        <profileTransAuthOnly>
            <amount>1.00</amount>
            <customerProfileId>...</customerProfileId>
            <customerPaymentProfileId>...</customerPaymentProfileId>
            <customerShippingAddressId>...</customerShippingAddressId>
            <order />
        </profileTransAuthOnly>
    </transaction>
</createCustomerProfileTransactionRequest>

 (There were correct values where I placed the "...")

 

Is there a way to include the CCV in the transaction request? Or is the android sdk source code available somewhere so I can modify it? I mean the one for the jar library anet-java-sdk-android-2.0.5.jar

 

Thank you


Accepted Solutions
Highlighted
Solution
Accepted by topic author francisco
‎08-21-2015 01:58 AM
Member
Posts: 4
Registered: ‎12-20-2013

Re: Android SDK with CIM not sending CCV

[ Edited ]

I couldn't find anything usefull in the Java DSK, but I did find a solition using the addExtraOption method

 

cimTransaction.addExtraOption("x_card_code", "123");

Thanks for the help!

View solution in original post


All Replies
Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Android SDK with CIM not sending CCV

anet_android_sdk-1.3.0.zip\anet_android_sdk-1.3.0\anet_android_sdk\src\main\java\net\authorize\android\cim

Highlighted
Member
Posts: 4
Registered: ‎12-20-2013

Re: Android SDK with CIM not sending CCV

What I see in that directory is the CIM Activity classes which use the Transaction class found in the jar library. e.g. transaction.setCardCode(cardCode);

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Android SDK with CIM not sending CCV

Could be in the Java SDKs

Highlighted
Solution
Accepted by topic author francisco
‎08-21-2015 01:58 AM
Member
Posts: 4
Registered: ‎12-20-2013

Re: Android SDK with CIM not sending CCV

[ Edited ]

I couldn't find anything usefull in the Java DSK, but I did find a solition using the addExtraOption method

 

cimTransaction.addExtraOption("x_card_code", "123");

Thanks for the help!