VGSCustomPaymentCardModel

public struct VGSCustomPaymentCardModel : VGSPaymentCardModelProtocol

Holds information for custom payment model.

Initialization

  • Initializer.

    Declaration

    Swift

    public init(name: String, regex: String, formatPattern: String, cardNumberLengths: [Int], cvcLengths: [Int] = [3], checkSumAlgorithm: CheckSumAlgorithmType? = .luhn, brandIcon: UIImage?)

    Parameters

    name

    String object, payment card model name.

    regex

    String object, should be valid regex expression.

    formatPattern

    String object, should be valid format pattern.

    cardNumberLengths

    [Int] object, array of valid card number lengths.

    cvcLengths

    [Int] object, array of valid card number CVC. Default is [3].

    checkSumAlgorithm

    CheckSumAlgorithmType? object, should be valid checkSumAlgorithm object, default is .luhn.

    brandIcon

    UIImage?, card image icon.