TMGClient

public class TMGClient : NSObject

TMGClient is used to create the VisaCTFHelper object which are used to bind and authenticate the vProvisionedTokenId to device for Visa.

Version

Version 1.0

Since

Since 1.0
  • Creates Visa Token Binding Client with the given configuration.

    Declaration

    Swift

    public func createVisaCTFHelper(tmgClientConfiguration: TMGClientConfiguration,
                                          completion: ((_ visaCTFHelper: VisaCTFHelper?,
                   
                                                        _ error: Error?) -> Void))

    Parameters

    tmgClientConfiguration

    A configuration object with mandatory parameters.

    Return Value

    • A VisaCTFHelper object, otherwise, a nil is returned if tmgClientConfiguration parameter is nil.
    • A TMGError if the device environment is not safe. Otherwise, nil is returned. Please check the logs for more information.

  • To get the version of TMGSDK.

    Declaration

    Swift

    public func getVersion() -> String

    Return Value

    The version of TMGSDK of type string.