-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Card #416
Comments
I had a similar issue where my card would not update types at all. No matter how many different (correct) card numbers I provided, it would not display the card type. So I went about looking into the source code for this library and found a solution myself.
|
so where would i add that code to make it work? |
@morgan2233 Just in the JavaScript. Replace "credit-number" with your credit card number input field and it will call those functions to check the card type and format it properly. |
Do i put it on the web file or inside the .js file |
In theory either should work. It's best practice to put it in your .js file though. |
Still doesnt work sadly, im using the jquery one if that makes a difference to your code |
Thanks @QuintonC! Clever solution :) |
Hello, All works fine however when someone enters there details, the card doesnt change type for example showing its a visa like in the demo
The text was updated successfully, but these errors were encountered: