Showing credit card icon

The following example shows credit card icon provided by Font Awesome based on the card type.

Card type Icon CSS class
American Express fa fa-cc-amex
Discover fa fa-cc-discover
Visa fa fa-cc-visa
Mastercard fa fa-cc-mastercard
Other fa fa-credit-card


PaymentFont and Payment Webfont provide more payment icons

More examples

Related validators

The following validators might be useful to you.