jessepollak / card

:credit_card: make your credit card form better in one line of code
MIT License
11.65k stars 1.48k forks source link

failure to identify card #661

Open fatemaSecuricore opened 1 month ago

fatemaSecuricore commented 1 month ago

hi, for me, when i type in the card number, it does not recognize/identify the card. do i need to include additional files?

melloware commented 1 week ago

NO the code for how to identify cards needs to be adjusted. See here: https://github.com/jessepollak/payment/blob/master/src/index.coffee

What type of card and what are the first 4 digits of the card?

fatemaSecuricore commented 1 week ago

So i was trying to add in a visa and mastercard - the inspector shows that the card has been identified but the card image doesn’t get updated

melloware commented 1 week ago

Hmm sounds like you have a JS issue or CSS issue. I have a working runnable here: https://www.primefaces.org/showcase-ext/sections/creditcard/basicUsage.jsf

Try your card in that and see if it works? At least the first 6 digits to see if it detects your card.