Interface CardValidator

  • All Known Implementing Classes:
    CardValidatorImpl

    public interface CardValidator
    Provides various credit card validation routines. The Card Validation process also discovers useful information about the card number, such as the card scheme, issuing country and bank.
    • Method Detail

      • luhnCheck

        boolean luhnCheck​(java.lang.String number)
        Performs a luhn check on the given credit card number, in order to determine if it is a valid number.
      • checkCard

        CardValidationResult checkCard​(CardInfo cardInfo)
        Performs the complete suite of card validation, including the luhn check. The Card Validation process also discovers useful information about the card number, such as the card scheme, issuing country and bank. This is all returned in the card validation result.
      • getSupportedCardSchemes

        java.util.List<CreditCardType> getSupportedCardSchemes()
        Returns the card schemes supported by the system.
      • isCardSchemeSupported

        boolean isCardSchemeSupported​(CreditCardType cardScheme)
        Determines if the provided card scheme is supported by the system.