FTLoyalty

iOS framework allowing easy integration with FinTiv’s Loyalty 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 'FTLoyalty'
end

In terminal

pod install

Add Configuration file

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

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

Import FTLoyalty

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