The mgiCreditCard Tag
Tag Behavior
Use the mgiCreditCard tag to verify that a given value is
a valid credit card number. This tag does not authorize
credit card purchases.
Tag Syntax
The mgiCreditCard tag has one required parameter and no optional
parameters. The tag form is:
<mgiCreditCard cardNumber="creditCardNumber">
Required Parameters:
- cardNumber - The cardNumber is the credit card number
to validate. If the card number is valid, the value "Yes"
is displayed. If the card number is not valid, the value "No"
is displayed. The card number may be formatted without spaces
(4258154612546458), with spaces (4258 1546 1254 6458) or with
hyphens (4258-1546-1254-6458). Spaces and hyphens are ignored
during the verification process. Valid card number may only contain
number and must be between 13 and 16 characters in length.
Optional Parameters:
Example Usage and Output
<mgiCreditCard cardNumber="428156214356">
In this example, the mgiCreditCard tag will check to see if
the number "428156214356" is a valid credit card number.
Since the number is invalid, the tag will return the value "No".
Suggested Usage
|