Class CreditCardValidator.Visa

java.lang.Object
org.apache.commons.validator.CreditCardValidator.Visa
All Implemented Interfaces:
CreditCardValidator.CreditCardType
Enclosing class:
CreditCardValidator

private static class CreditCardValidator.Visa extends Object implements CreditCardValidator.CreditCardType
Change to support Visa Carte Blue used in France has been removed - see Bug 35926
  • Field Details

  • Constructor Details

    • Visa

      private Visa()
  • Method Details

    • matches

      public boolean matches(String card)
      Description copied from interface: CreditCardValidator.CreditCardType
      Returns true if the card number matches this type of credit card. Note that this method is not responsible for analyzing the general form of the card number because CreditCardValidator performs those checks before calling this method. It is generally only required to valid the length and prefix of the number to determine if it's the correct type.
      Specified by:
      matches in interface CreditCardValidator.CreditCardType
      Parameters:
      card - The card number, never null.
      Returns:
      true if the number matches.