Reply
Highlighted
Member
Posts: 1
Registered: ‎11-20-2019
Accepted Solution

Authorize declining transaction with cvv having leading zero(0)

I am having issue where authorize is throwing error while processing card payment which has cvv code leading with 0 like 045, 030
I am getting following error

The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:cardCode' element is invalid - The value XXXX is invalid according to its datatype 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:cardCode' - The actual length is less than the MinLength value.


We are doing payment using authorize api to charge a credit card. (https://developer.authorize.net/api/reference/)


Accepted Solutions
Highlighted
Solution
Accepted by topic author sachinjoshi123
‎11-21-2019 07:25 AM
All Star
Posts: 727
Registered: ‎11-05-2018

Re: Authorize declining transaction with cvv having leading zero(0)

@sachinjoshi123

Sounds like a type issue. Sounds like you are passing an integer and the leading 0 is getting truncated. I think that passing a string may work. Just a hunch but give it a try.

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author sachinjoshi123
‎11-21-2019 07:25 AM
All Star
Posts: 727
Registered: ‎11-05-2018

Re: Authorize declining transaction with cvv having leading zero(0)

@sachinjoshi123

Sounds like a type issue. Sounds like you are passing an integer and the leading 0 is getting truncated. I think that passing a string may work. Just a hunch but give it a try.