FTMobileCommerce

iOS framework allowing easy integration with FinTiv’s MobileCommerce service.

Getting Started

Prerequisites

Installing

Add pod ‘FTMobileCommerce’ to your Podfile, run pod install.

In Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.3'
use_frameworks!

workspace 'path/to/your/Project.xcproj'

target "YourTarget" do
  pod 'FTMobileCommerce'
end

In terminal

pod install

Add Configuration file

Add a copy of MobileCommerce.plist in Pods/FTMobileCommerce/ to your Target. Fill the values in with those obtained from Fintiv. Such that Bundle.main.path(forResource:…) can access the file

If you plan on using the Framework’s FTMCStampReaderViewController for Stamps & Rewards’ QR Scanning, add NSCameraUsageDescription entry to your target’s main property list.

In AppDelegate, call the static setup method to configure it from the configuration file

Import FTMobileCommerce

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    FTMobileCommerce.setup()
}