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.
-
ELO brand.
Declaration
Swift
case elo -
Visa Electron brand.
Declaration
Swift
case visaElectron -
Maestro brand.
Declaration
Swift
case maestro -
Forbrugsforeningen brand.
Declaration
Swift
case forbrugsforeningen -
Dankort brand.
Declaration
Swift
case dankort -
Visa brand.
Declaration
Swift
case visa -
Mastercard brand.
Declaration
Swift
case mastercard -
American Express brand.
Declaration
Swift
case amex -
Hipercard brand.
Declaration
Swift
case hipercard -
Diners Club brand.
Declaration
Swift
case dinersClub -
Discover brand.
Declaration
Swift
case discover -
UnionPay brand.
Declaration
Swift
case unionpay -
JCB brand.
Declaration
Swift
case jcb -
Not supported / undetected brand.
Declaration
Swift
case unknown -
Custom Payment Card Brand. Should have unique
brandName.Declaration
Swift
case custom(brandName: String) -
no:doc
Declaration
Swift
@MainActor public var cvcFormatPattern: String { get } -
Current brand icon. Returns custom brand icon if supplied via
VGSPaymentCardModel.brandIcon, otherwise default asset or unknown fallback.Declaration
Swift
@MainActor public var brandIcon: UIImage? { get } -
Current brand CVC helper icon. Returns custom icon if supplied via
VGSPaymentCardModel.cvcIcon, otherwise default length-specific asset or unknown fallback.Declaration
Swift
@MainActor public var cvcIcon: UIImage? { get }
-
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
View on GitHub