cancel
Showing results for 
Search instead for 
Did you mean: 

AIM and CIM - credit card nmber spaces and dashes

Please help.

 

E-commerce site: Ubercart/Drupal

Authorize.net: AIM and CIM

Problem: When I place an order through our web admin, and by accident put spaces after every 4 digits of the credit card number, the auth.net successfully processed the transaction, but failed to create CIM subscription.

I have followed the XML guide for both AIM and CIM, but still confused why the transaction went through but not the CIM.

 

The CIM error message from my admin:

Authorize.Net: Creating CIM profile failed.
E00003 - The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:cardNumber' element is invalid - The value ‘xxxx xxxx xxxx xxxx’ is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.

 

But yet, the transaction was successful:

 

Authorization and capture
ACCEPTED: This transaction has been approved.
Amount: $XX.XX
AVS response: Y - Address (Street) and five digit ZIP match
CVV match: M - Match

 

Thank you in advance.

Andy

1 REPLY 1

I am guessing that the module you are using for UberCart is actually using AIM with name/value pairs and not XML. The credit card field datatype is a bit more forgiving for the traditional AIM API than it is through XML. With any of our XML APIs, the credit card is defined as a field with a maximum of 16 characters and the transaction will not even be attempted if the XML doesn't match the schema specifications.

Trevor
Administrator Administrator
Administrator