wangjohn / creditly

An intuitive credit card form
http://wangjohn.github.io/creditly/
MIT License
299 stars 59 forks source link

American Express #4

Open Martinspire opened 10 years ago

Martinspire commented 10 years ago

The numbers to enter for an American Express card are different, 1 number less and the order is xxxx xxxxxx xxxxx.

Perhaps a toggle for input would be best?

wangjohn commented 10 years ago

Could you show me what you mean?

American Express card numbers are already handled on the credit card number input form. If you begin typing a 34 or a 37 into the form, then the form will adjust to use the xxxx xxxxxx xxxxx format that you mentioned. The security code field will also allow you to type 4 letters and also validate for 4 letters (instead of the default 3).

Please let me know if that doesn't cover what your looking for.