VGSPaymentCards
public class VGSPaymentCards
Class responsible for storing and managing Payment Cards in SDK.
- Contains editable defined Payment Cards Models
- Allows to add Custom Payment Cards Models
- Allows to edit Unknown Payment Cards Models(brands not defined by SDK and Developer)
-
Supported card brands
See moreDeclaration
Swift
public enum CardBrand : Equatable
-
Elo Payment Card Model
Declaration
Swift
public static var elo: VGSPaymentCardModel
-
Visa Electron Payment Card Model
Declaration
Swift
public static var visaElectron: VGSPaymentCardModel
-
Maestro Payment Card Model
Declaration
Swift
public static var maestro: VGSPaymentCardModel
-
Forbrugsforeningen Payment Card Model
Declaration
Swift
public static var forbrugsforeningen: VGSPaymentCardModel
-
Dankort Payment Card Model
Declaration
Swift
public static var dankort: VGSPaymentCardModel
-
Elo Payment Card Model
Declaration
Swift
public static var visa: VGSPaymentCardModel
-
Master Card Payment Card Model
Declaration
Swift
public static var masterCard: VGSPaymentCardModel
-
Amex Payment Card Model
Declaration
Swift
public static var amex: VGSPaymentCardModel
-
Hipercard Payment Card Model
Declaration
Swift
public static var hipercard: VGSPaymentCardModel
-
DinersClub Payment Card Model
Declaration
Swift
public static var dinersClub: VGSPaymentCardModel
-
Discover Payment Card Model
Declaration
Swift
public static var discover: VGSPaymentCardModel
-
UnionPay Payment Card Model
Declaration
Swift
public static var unionpay: VGSPaymentCardModel
-
JCB Payment Card Model
Declaration
Swift
public static var jcb: VGSPaymentCardModel
-
Unknown Brand Payment Card Model. Can be used for specifing cards details when
VGSValidationRulePaymentCard
requires validatingCardBrand.unknown
cards.Declaration
Swift
public static var unknown: VGSUnknownPaymentCardModel
-
Array of Custom Payment Card Models.
Note
the order has impact on which card brand should be detected first byVGSPaymentCardModel.regex
.Declaration
Swift
public static var cutomPaymentCardModels: [VGSCustomPaymentCardModel]
-
An array of valid Card Brands, could include custom and default brands. If not set, will use
availableCardBrands
array instead.Note
the order has impact on which card brand should be detected first byVGSPaymentCardModel.regex
.Declaration
Swift
public static var validCardBrands: [VGSPaymentCardModelProtocol]?