[Validator] Add support for UATP card validation#29504
Merged
fabpot merged 1 commit intosymfony:masterfrom Dec 10, 2018
Merged
Conversation
stof
reviewed
Dec 8, 2018
src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php
Outdated
Show resolved
Hide resolved
fabpot
approved these changes
Dec 10, 2018
b83ceca to
2446a17
Compare
Member
|
Thank you @raulfraile. |
fabpot
added a commit
that referenced
this pull request
Dec 10, 2018
…fraile) This PR was squashed before being merged into the 4.3-dev branch (closes #29504). Discussion ---------- [Validator] Add support for UATP card validation | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT [UATP](https://en.wikipedia.org/wiki/Universal_Air_Travel_Plan) (Universal Air Travel Plan) is the airline owned payment network accepted by thousands of merchants for rail, air, hotel and travel agency payments. This PR adds support for UATP cards so they can be validated using the Symfony Validator component. According to https://en.wikipedia.org/wiki/Payment_card_number, all UATP cards start with `1`, have a length of 15 digits and follow the [Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm). Test card numbers can be generated from https://www.myfakeinfo.com/creditcard/uatp-debit-card.php Commits ------- 2446a17 [Validator] Add support for UATP card validation
javiereguiluz
added a commit
to symfony/symfony-docs
that referenced
this pull request
Jan 3, 2019
…aviereguiluz) This PR was merged into the master branch. Discussion ---------- Added the UATP number scheme to CardScheme constraint Documents symfony/symfony#29504 Commits ------- 33474e6 Added the UATP number scheme to CardScheme constraint
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UATP (Universal Air Travel Plan) is the airline owned payment network accepted by thousands of merchants for rail, air, hotel and travel agency payments. This PR adds support for UATP cards so they can be validated using the Symfony Validator component.
According to https://en.wikipedia.org/wiki/Payment_card_number, all UATP cards start with
1, have a length of 15 digits and follow the Luhn algorithm. Test card numbers can be generated from https://www.myfakeinfo.com/creditcard/uatp-debit-card.php