Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] Added additional MasterCard range to the CardSchemeValidator#19316

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromdvaeversted:mastercard_fix
Jul 8, 2016

Conversation

@dvaeversted
Copy link
Contributor

From October 2016 MasterCard will introduce a new card range, 222100 through 272099.
See:https://www.mctestcards.com/ (click the help in top right)
This implements the additional regex for validation to succeed, and some additional unit tests for this new range.

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

From October 2016 MasterCard will introduce a new card range,222100 through 272099.See:https://www.mctestcards.com/ (click the help in top right)Implements unit tests and validation for this new card range.
array('MASTERCARD','5105105105105100'),
array('MASTERCARD','2221005555554444'),
array('MASTERCARD','2230000000000000'),
array('MASTERCARD','2300000000000000'),
Copy link
Member

Choose a reason for hiding this comment

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

If we are testing23xxx,26xxx and27xxx maybe we should also test the missing24xxx and25xxx to avoid future regressions (these regexps are a bit tricky).

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The reason for testing23xxx and26xxx is beceause they are both in the range where only the 2 first digits need checking.
Therefor i feel that testing24xxx and25xxx is redundant, but i can add them if needed ?

javiereguiluz reacted with thumbs up emoji
@javiereguiluz
Copy link
Member

👍

The linked resource clearly shows that we should merge this as soon as possible. Thanks@dvaeversted.

@fabpot
Copy link
Member

Thank you@dvaeversted.

@fabpotfabpot merged commit4d68f56 intosymfony:2.7Jul 8, 2016
fabpot added a commit that referenced this pull requestJul 8, 2016
…chemeValidator (Dennis Væversted)This PR was merged into the 2.7 branch.Discussion----------[Validator] Added additional MasterCard range to the CardSchemeValidatorFrom October 2016 MasterCard will introduce a new card range, 222100 through 272099.See:https://www.mctestcards.com/ (click the help in top right)This implements the additional regex for validation to succeed, and some additional unit tests for this new range.| 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        |Commits-------4d68f56 [Validator] Added additional MasterCard range to the CardSchemeValidator
This was referencedJul 30, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@dvaeversted@javiereguiluz@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp