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
tenantId
identifier of tenant
useThreeDSecure
Whether use 3-D secure or not
completion
completion action
-
Create token for objective-c
Declaration
Swift
func createTokenWith(_ tenantId: String?, useThreeDSecure: Bool, completion: @escaping (Token?, NSError?) -> Void)
Parameters
tenantId
identifier of tenant
useThreeDSecure
Whether use 3-D secure or not
completion
completion action
-
Fetch accepted card brands for swift
Declaration
Swift
func fetchBrands(tenantId: String?, completion: CardBrandsResult?)
Parameters
tenantId
tenantId identifier of tenant
completion
completion action
-
Fetch accepted card brands for objective-c
Declaration
Swift
func fetchBrandsWith(_ tenantId: String?, completion: (([NSString]?, NSError?) -> Void)?)
Parameters
tenantId
tenantId identifier of tenant
completion
completion action
-
Validate card form
Declaration
Swift
func validateCardForm() -> Bool
Return Value
is valid form
-
Setup input accessory view of text field
Declaration
Swift
func setupInputAccessoryView(view: UIView)
Parameters
view
input accessory view
-
Enable extra attributes for 3-D Secure. Both [ExtraAttributesEmail] and [ExtraAttributesPhone] is enabled as default.
Declaration
Swift
func apply(extraAttributes: [ExtraAttribute])