PolymerElements / gold-cc-input

An input element that only allows credit card numbers
https://webcomponents.org/element/PolymerElements/gold-cc-input
13 stars 23 forks source link

add card icons for valid card types #9

Closed notwaldorf closed 9 years ago

notwaldorf commented 9 years ago

If the card is valid, its icon is displayed: screen shot 2015-05-25 at 10 19 44 am

I've moved the validating code out of the validator and into the change handler, so that the fancy result (card type/icon etc.) can be used. PTAL

morethanreal commented 9 years ago

lgtm. Another way to do this is to expose the validation response in a bindable property, like iron-ajax.

notwaldorf commented 9 years ago

I've done two small extra changes in validate() :

Is this still ok?