kenkeiter / skeuocard

Skeuocard progressively enhances credit card inputs to provide a skeuomorphic interface.
http://kenkeiter.com/skeuocard/
MIT License
3.23k stars 231 forks source link

Make name/card type fields optional #103

Open swrobel opened 11 years ago

swrobel commented 11 years ago

We actually take billing name/address on the previous page of our checkout so we don't ask for name on the payment page. I've resorted to creating an input pre-filled with the name they gave on the last page like so:

<input name="cc_name" value="Joe Customer" style="display:none;">

...but I'd rather remove fields if at all possible. I also don't require card type (the processor figures that out) so I don't need to have skeuocard set it. I've had to resort to the following to make skeuocard play nice:

<input name="cc_type" style="display:none;">

Sidenote: skeucard fails spectacularly when it can't find the required fields. I know it's only 1.0, but some console output indicating what went wrong would be nice, rather than the indecipherable error mentioned here: https://github.com/kenkeiter/skeuocard/pull/101

peterlada commented 10 years ago

I second this. Removing name causes weirdness...

yazinsai commented 9 years ago

+1