CreditCardValidator

public struct CreditCardValidator : ConfigurableValidator

The CreditCardValidator contains an CreditCardCondition. A valid string is a credit card number.

  • Returns valid card types for a credit card number asynchronously.

    Declaration

    Swift

    public func validCardTypes(`for` creditCardNumber: String, completion : @escaping (CreditCardType) -> Void)