Skip to content

[Validator] Credit card validators in Symfony2.2? #6312

Closed
@ricardclau

Description

@ricardclau

Sorry if this has been discussed before, did not find anything on a quick search in Issues finder

Now that Luhn algorithm has been added to core, I was wondering if you had plans to add validators for all major credit cards (Visa, MasterCard, Amex, Diners, Discover...)

Most people working on e-commerce need to add these validations and I think it would be great to get them included in core.

Some months ago I did some work on a small pet project at https://github.com/ricardclau/PixelavengersExtraValidatorBundle that includes some major Credit Card validators and some other numbers that can be validated like ES and FR IDs, etc...

If you find this interesting I could work on a PR adding major credit cards... of course they are not much more than a RegExp

Any thoughts? Sorry again if this has been discussed but have not find a issue thread for that apart from Luhn's validator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions