Skip to content

[Validator] Add support for UATP card validation #29504

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
Dec 10, 2018

Conversation

raulfraile
Copy link
Contributor

@raulfraile raulfraile commented Dec 7, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

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

@chalasr chalasr added this to the next milestone Dec 9, 2018
@fabpot fabpot force-pushed the feature/uatp-card-validation branch from b83ceca to 2446a17 Compare December 10, 2018 04:08
@fabpot
Copy link
Member

fabpot commented Dec 10, 2018

Thank you @raulfraile.

@fabpot fabpot merged commit 2446a17 into symfony:master Dec 10, 2018
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
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
@fabpot fabpot mentioned this pull request May 9, 2019
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.

6 participants