07-07-2016 09:44 PM
I am using CIM hosted form. I need to make the card code required. I made the card code required on the Payment Form - Fields page. When I try to add a credit card leaving the Card Code blank I get the following error:
This transaction has been declined.
After this, I enter the card code and then I get this error:
A duplicate transaction has been submitted.
This messages are not very informative. Is there any way to really make the card cord required and show an appropiate message on the form. This happens on both the old and new CIM.
07-08-2016 03:37 AM
When requesting a token, specify that the card code is required by setting hostedProfileCardCodeRequired to true:
In the Java JDK, it's done this way:
SettingType setting3 = new SettingType();
ArrayOfSetting alist = new ArrayOfSetting();
GetHostedProfilePageRequest apiRequest = new GetHostedProfilePageRequest();
07-10-2016 09:51 PM
After I do this I am unable to add CC on sandbox. Is this setting not available on sandbox. I get the error below:
Declined (Authorization with the card issuer was successful but the transaction was declined due to a card code mismatch with the card code on file with the card issuing bank based on the settings in the Merchant Interface.)
07-11-2016 04:37 PM
Are you sure you are doing this on the sandbox and not production? The sandbox account will accept any card code for me.
The only other possibility I can think of is that you are sending the wrong number of digits. Most card codes are 3 digits, but I think there's one credit card provider that uses four digits (AmEx?).