CardBrand

public enum CardBrand : Equatable, Sendable

Supported card brands handled by the SDK.

Note

.custom(brandName:) can be used to add developer-defined brands; ensure brandName uniqueness.

Attributes

  • Human-readable name for the card brand (falls back to unknown brand name if not resolved).

    Declaration

    Swift

    @MainActor
    var stringValue: String { get }
  • Valid card number lengths for this brand (falls back to unknown model lengths if not resolved).

    Declaration

    Swift

    @MainActor
    var cardLengths: [Int] { get }
  • Equatable implementation comparing brand identity or custom brand names.

    Declaration

    Swift

    static func == (lhs: `Self`, rhs: `Self`) -> Bool