cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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/)

1 ACCEPTED SOLUTION

Accepted Solutions
@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

Renaissance
All Star
1 REPLY 1
@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.
Renaissance
All Star