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

American Express cards are invalid #44

Open
anthonycastelli opened this issue Oct 1, 2018 · 1 comment
Open

American Express cards are invalid #44

anthonycastelli opened this issue Oct 1, 2018 · 1 comment

Comments

@anthonycastelli
Copy link

A typical credit card number (i.e. Mastercard) looks like this:
5555 5555 5555 4444
and an American Express card looks like
3782 822463 10005

Using the Default CardNumberFormatter, American Express cards are invalid. Can we get some sort of formatter that can be used with both?

@3lvis
Copy link
Owner

3lvis commented Oct 1, 2018

Hi @anthonycastelli!

Should be possible to have an algorithm that supports all types.

https://ux.stackexchange.com/questions/51346/why-do-credit-card-forms-ask-for-visa-mastercard-etc

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