CardFormAction
public protocol CardFormAction
CardForm action protocol.
-
Form is valid
Declaration
Swift
var isValid: Bool { get } -
Create token for swift
Declaration
Swift
func createToken(tenantId: String?, useThreeDSecure: Bool, completion: @escaping (Result<Token, Error>) -> Void)Parameters
tenantIdidentifier of tenant
useThreeDSecureWhether use 3-D secure or not
completioncompletion action
-
Create token for objective-c
Declaration
Swift
func createTokenWith(_ tenantId: String?, useThreeDSecure: Bool, completion: @escaping (Token?, NSError?) -> Void)Parameters
tenantIdidentifier of tenant
useThreeDSecureWhether use 3-D secure or not
completioncompletion action
-
Fetch accepted card brands for swift
Declaration
Swift
func fetchBrands(tenantId: String?, completion: CardBrandsResult?)Parameters
tenantIdtenantId identifier of tenant
completioncompletion action
-
Fetch accepted card brands for objective-c
Declaration
Swift
func fetchBrandsWith(_ tenantId: String?, completion: (([NSString]?, NSError?) -> Void)?)Parameters
tenantIdtenantId identifier of tenant
completioncompletion action
-
Validate card form
Declaration
Swift
func validateCardForm() -> BoolReturn Value
is valid form
-
Setup input accessory view of text field
Declaration
Swift
func setupInputAccessoryView(view: UIView)Parameters
viewinput accessory view
-
Enable extra attributes for 3-D Secure. Both [ExtraAttributesEmail] and [ExtraAttributesPhone] is enabled as default.
Declaration
Swift
func apply(extraAttributes: [ExtraAttribute])
View on GitHub