bendrucker / angular-credit-cards

Angular directives for parsing and validating credit card inputs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom validation

costea93 opened this issue · comments

Hey guys, it's possible to add new kind of validation for card number? for example:

XXXX XXXX XXXX 3456 to be valid!

Not at the moment, happy to keep this issue open about it though if I have time to work on it. I can add the ability to add new types w/ a provider.

@bendrucker Can you suggest any quick way?

@bendrucker, man any idea on how to do that that will be great 👍

Yeah it would be awesome to add extra validation when running through test card sequences like 4222 2222 2222 2222 etc so you could define a list of test cards that will pass

Closing based on inactivity, I'm not planning on taking this on