Credit Card
View codeUse
Try these:
378734493671000601100099013942435660020203605055105105105105100
HTML
<rg-credit-card-number></rg-credit-card-number>
JavaScript
var tags = riot.mount('rg-credit-card-number', {
placeholder: 'Long number on front',
cardnumber: '4000 0000 0000 0002'
})
The control will produce a textbox that validates the card number (spaces are removed automatically) and if valid will turn the border green and apply a card CSS class name.
The following card types (CSS classes) are supported:
amexdiners_club_carte_blanchediners_club_internationalmastercarddiscoverjcblasermaestrovisavisa_electron
To display a card icon add a class with a background image for each of the supported card types.