FTMobileCommerce

Contents

public class FTMobileCommerce

Cloudpayments Mobile Commerce platform

Properties

serviceCatalog
public var serviceCatalog : FTMCServiceCatalog?

The current service catalog

Methods

setup(configurationFile:)
public static func setup(configurationFile : String = "MobileCommerce") -> Bool

Configures the Mobile Commerce platform. Must be called before any other call to any member of the framework

  • Parameters:

    • wallet: client’s WalletId
    • endpoint: optional custom client endpoint
    • apiVersion: optional custom api version
    • fetchServices: fetches service catalog as soon as framework is initialized, defaults to true
      Configures the Mobile Commerce platform. Must be called before any other call to any member of the framework
  • Parameter configurationFile: Name of the property list file, without extension in your main bundle, defaults to “MobileCommerce”

Parameters

Name Description
configurationFile Name of the property list file, without extension in your main bundle, defaults to “MobileCommerce”
reset(confirmOnce:confirmTwice:)
public static func reset(confirmOnce: Bool, confirmTwice : Bool)

Testing function to reset framework’s shared instance - DO NOT USE

  • Parameters:
    • confirmOnce: confirm
    • confirmTwice: confirm

Parameters

Name Description
confirmOnce confirm
confirmTwice confirm