IDVSession

public class IDVSession

IDVSession is used to get the available IDVMethod, submit the user’s selection and then validate the OTP to complete IDV flow.

Version

Version 3.0

Since

Since 3.0
  • Gets the list of IDVMethod.

    Declaration

    Swift

    public var idvMethods: [MastercardTAFHelper.IDVMethod] { get }

    Return Value

  • Based on selected IDVMethod, the corresponding verification flow will be triggered.

    Declaration

    Swift

    public func selectIDVMethod(_ method: IDVMethod, completionHandler: @escaping (() -> Void))

    Parameters

    idvMethod

    The IDVMethod selected. This is a mandatory input.

  • Activates the binding with OTP, TMGSDK will call the server to validate the OTP.

    Declaration

    Swift

    public func validateOTP(_ otp: String?)

    Parameters

    otp

    The OTP that is used for authentication.