jessepollak / card

:credit_card: make your credit card form better in one line of code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show card without inputs

SDAdham opened this issue · comments

Hello, is it possible that i can display card information without input. Just for display purposes?

Well the one thing you could do is set the inputs to CSS style display: none to hide them.

display: none works great but I am unable to set card type and back color, this is what i get:

image
Hence, I receive from DB only the last 4 digits and card type.

the card type is determined mostly by the first 4-6 digits for example start typing "4400" and it flips to "Visa. Without those first digits it has no idea what kind of card it is.