Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

JCB credit card validation could be 15 digits long #6278

Closed
ghost opened this issue May 15, 2014 · 0 comments
Closed

JCB credit card validation could be 15 digits long #6278

ghost opened this issue May 15, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented May 15, 2014

The JCB credit card validation is not right. JCB could be 15, 16 digits long. So the file
Zend/Validator/CreditCard.php should be modified on line 87:

  self::JCB              => array(16),

and be replaced with the following:

  self::JCB              => array(15, 16),

Also the prefixes 2131, 1800 corresponding to the 15 digits credit cards must be added. Just update line 111:

        self::JCB              => array('3528', '3529', '353', '354', '355', '356', '357', '358'),

Adding the new prefixes:

        self::JCB              => array('2131', '1800', '3528', '3529', '353', '354', '355', '356', '357', '358'),
@MadCat34 MadCat34 mentioned this issue Nov 26, 2014
Ocramius added a commit that referenced this issue Nov 27, 2014
Ocramius added a commit that referenced this issue Nov 27, 2014
Ocramius added a commit that referenced this issue Nov 27, 2014
…nges-update' into develop

Close #6927
Close #6278
Forward port #6927
Forward port #6278
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
…dding missing `@group` docblock referencing the pull request that introduced the test
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
…dding missing docblock parameters, minor cs fixes
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant