Validation Rules
-
Set of validation rules
See moreDeclaration
Swift
public struct VGSValidationRuleSet
-
Validate input in scope of length.
See moreDeclaration
Swift
public struct VGSValidationRuleLength : VGSValidationRuleProtocol
-
Validate input in scope of multiple lengths, e.x.: [16, 19].
See moreDeclaration
Swift
public struct VGSValidationRuleLengthMatch : VGSValidationRuleProtocol
-
Validate input in scope of matching the pattern(regex).
See moreDeclaration
Swift
public struct VGSValidationRulePattern : VGSValidationRuleProtocol
-
Validate input in scope of matching supported card brands, available lengths and checkSum algorithms. Supports optional validation of cards that are not defined in SDK -
See moreCardBrand.unknown
. To edit validation requirments forCardBrand.unknown
cards in SDK, setupVGSPaymentCards.unknown
model attributes.Declaration
Swift
public struct VGSValidationRulePaymentCard : VGSValidationRuleProtocol
-
Validate input in scope of matching Luhn algorithm.
See moreDeclaration
Swift
public struct VGSValidationRuleLuhnCheck : VGSValidationRuleProtocol
-
Validate input in scope of matching card expiration date format and time range.
See moreDeclaration
Swift
public struct VGSValidationRuleCardExpirationDate : VGSValidationRuleProtocol
-
Validation rule used to validate the date input in objects like
See moreVGSDateTextField
,VGSTextField
andVGSExpDateTextField
Declaration
Swift
public struct VGSValidationRuleDateRange : VGSValidationRuleProtocol
-
Check Sum Algorithm Types
See moreDeclaration
Swift
public enum CheckSumAlgorithmType