| |
|
|
|
 |
Home NewsBlogProducts Download Buy Now Documentation Support |
 |
 |
|
|
 |
| |


Contents
|
10. Tomahawk Tag Reference
Contents > Tomahawk Tag Reference > t:validateCreditCard
t:validateCreditCard |
|
The t:validateCreditCard tag allows you to validate various credit cards, including Amex, Visa, Mastercard, and Discover, using the Jakarta Commons validation library.
Example:
<t:validateCreditCard></t:validateCreditCard>
|
Tag Attributes
| amex |
String |
| |
| The amex attribute expects a boolean value that, when true, indicates that this validator can be applied to American Express credit cards. The default value is true. |
| discover |
String |
| |
| The discover attribute expects a boolean value that, when true, indicates that this validator can be applied to Discover credit cards. The default value is true. |
| mastercard |
String |
| |
| The mastercard attribute expects a boolean value that, when true, indicates that this validator can be applied to Mastercard credit cards. The default value is true. |
| message |
String |
| |
| The message attribute defines an alternate validation message for this tag. |
| none |
String |
| |
| The none attribute expects a boolean value that, when true, indicates that no credit cards are supported by this validator. The default value is false. |
| visa |
String |
| |
| The visa attribute expects a boolean value that, when true, indicates that this validator can be applied to Visa credit cards. The default value is true. |
|
|
|
| |
|