Payment Cards
-
Class responsible for storing and managing Payment Card definitions used by the SDK.
- Provides predefined payment card models (Visa, Mastercard, Amex, etc.).
- Supports adding custom payment card models (regex & format pattern based).
- Allows configuring behaviour and validation for unknown brands through
VGSPaymentCards.unknown.
Declaration
Swift
@MainActor final public class VGSPaymentCards -
An object representing Payment Card
See moreDeclaration
Swift
@MainActor public struct VGSPaymentCardModel : VGSPaymentCardModelProtocol -
Holds information for custom payment model.
See moreDeclaration
Swift
public struct VGSCustomPaymentCardModel : VGSPaymentCardModelProtocol -
An object representing Unknown Payment Cards - cards not defined in the SDK. Object is used when validation for
See moreCardBrand.unknownis set astrue. CheckVGSValidationRulePaymentCardfor more details. Validation attributes can be edited through `VGSPaymentCards.unknownmodel.Declaration
Swift
@MainActor public struct VGSUnknownPaymentCardModel
View on GitHub
Payment Cards Reference