IDVSession
public class IDVSession
IDVSession is used to retrieve the vProvisionedTokenId session details with pending activation.
Version
Version 3.0Since
Since 3.0-
Gets the list of
IDVMethodVersion
Version 3.0
Since
Since 3.0
Declaration
Swift
public var idvMethods: [VisaCTFHelper.IDVMethod] { get throws }Return Value
- The list of
IDVMethodthat is available.
- The list of
-
Gets the previously selected
IDVMethod.Version
Version 3.0
Since
Since 3.0
Declaration
Swift
public var previouslySelectedIDVMethod: VisaCTFHelper.IDVMethod? { get throws } -
Selects the IDV method for the Visa Token Binding process.
Declaration
Swift
public func selectIDVMethod(_ method: VisaCTFHelper.IDVMethod, completionHandler: @escaping (VisaCTFHelper.OTPActivationStatus?) -> Void)Parameters
methodThe
IDVMethodto be selected. This is a mandatory input.completionHandlerA completion handler to notify the app of the selected IDV method’s result. This is a mandatory input.
- On succes: Returns a
nilvalue when theIDVMethodselected is.appToApp, .customerService, or .outboundCall. Otherwise, anOTPActivationStatusvalue is returned. - On failure: This will invoke the main function
completionHandlerthat returnsIDVSessionandTMGError
- On succes: Returns a
-
Activate Binding with or without
OTP. IfOTPis provided, theTMGSDKwill call the server to validate it. However if theOTPis not provided, theTMGSDKdoesn’t call the server and activate the binding locally.Declaration
Swift
public func activateBinding(withValue value: String?)Parameters
otpcould be
nilif using not suitableIDVMethod.- For example:
IDVMethod.IDVType.appToAppIDVMethod.IDVType.customerServiceIDVMethod.IDVType.outboundCall
- For example:
IDVSession Class Reference