Skip to content
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

UnionPay expressPay card validation problem #40

Closed
jovpet opened this issue Dec 14, 2018 · 1 comment
Closed

UnionPay expressPay card validation problem #40

jovpet opened this issue Dec 14, 2018 · 1 comment

Comments

@jovpet
Copy link

jovpet commented Dec 14, 2018

UnionPay ExpressPay card, (19 digits number) doesn't pass validation. A test card from Adyen 8171 9999 0000 0000 021, that can be found here: https://docs.adyen.com/developers/test-cards/test-card-numbers#unionpaysecureplusdebitcard doesn't validate.

@timofei-iatsenko
Copy link
Owner

This library uses Regexp to validate a card number against of list of predefined values.
Unfortunately, there are much more card schemes in real word than bundled in this library
And it's just impossible to cover them all in this library (it will also blow up a bundle size significantly).

I see a solution for this issue is just allow users to add own type of cards, there is a feature request #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants