DSCreditCardValidationRule

public struct DSCreditCardValidationRule : DSValidationRule

A validation rule for requiring that a credit card number matches a legal format as much as possible.

  • Initializes the validation rule.

    Declaration

    Swift

    public init(message: String)

    Parameters

    message

    Error message to display if validator fails