creditCard

Purpose

To validate that a String value is a valid credit card number

Examples

cardNumber(creditCard:true)

Description

Set to true if a string should be a credit card number. Internally uses the org.apache.commons.validator.CreditCardValidator class.

Error Code: className.propertyName.creditCard.invalid