commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (VALIDATOR-272) CreditCardValidator returns false on validating Visa card which start with 4530
Date Fri, 23 Jan 2009 22:17:59 GMT

     [ https://issues.apache.org/jira/browse/VALIDATOR-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton resolved VALIDATOR-272.
---------------------------------------

    Resolution: Invalid

The check digit on the number you supply is not valid. The credit card validator checks this

http://en.wikipedia.org/wiki/Luhn_algorithm

> CreditCardValidator returns false on validating Visa card which start with 4530
> -------------------------------------------------------------------------------
>
>                 Key: VALIDATOR-272
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-272
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.3.1 Release
>         Environment: Java SDK 6
>            Reporter: Peter Miljanovic
>
> The credit card validation does not successfully validate Visa card numbers beginning
with 4530.
> CreditCardValidator ccv = new CreditCardValidator();
> if (ccv.isValid("4530424242424242")) {
>   // returns false
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message