Skip to content

[Validator] 19 digits VISA card numbers are valid #25771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2018

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jan 11, 2018

@@ -81,7 +81,7 @@ class CardSchemeValidator extends ConstraintValidator
),
// All Visa card numbers start with a 4. New cards have 16 digits. Old cards have 13.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment should be removed or updated as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment updated

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh thank you for fixing this error. Please, don't forget to update the comment too. Thanks!

@fabpot
Copy link
Member

fabpot commented Jan 13, 2018

Thank you @xabbuh.

@fabpot fabpot merged commit a53cc5c into symfony:2.7 Jan 13, 2018
fabpot added a commit that referenced this pull request Jan 13, 2018
This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] 19 digits VISA card numbers are valid

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

some sources:

* https://en.wikipedia.org/wiki/Payment_card_number
* https://blog.vindicia.com/19-digit-visas-and-2-digit-mastercards/
* https://www.nccgroup.trust/de/uber-uns/newsroom-and-events/blogs/2016/november/prepare-for-19-digit-credit-cards/
* http://support.worldpay.com/support/kb/bg/testandgolive/tgl5103.html

Commits
-------

a53cc5c 19 digits VISA card numbers are valid
@xabbuh xabbuh deleted the visa-19-digits branch January 13, 2018 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants