iOS SDK (Swift)¶
iOS SDK allows you to accept payment from Visa/MasterCard, Apple Pay, Google Pay in any of your iOS applications.
The latest version of the iOS SDK you can always find in our public repository
https://github.com/cloudipsp/ios-sdk
To run the sample of application, run the command
git clone git@github.com:cloudipsp/ios-sdk.git
cd ios-sdk/Example
pod install
Cloudipsp SDK is also available through CocoaPods. To install it, simply add the following line to your Podfile:
pod “Cloudipsp”
Example for Swift you can find by the link https://github.com/cloudipsp/ios-sdk/tree/master/ExampleSwift
Integrate SDK putting the generated MerchantID in 2 places
-
In XCode -> Target -> Capabilities -> ApplePay -> Merchant IDS
-
In integration SDK set
merchant_id
received during registration in Flitt Merchant Portal in constructor instead of test 900234<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="1396424" borderStyle="roundedRect" placeholder="Enter merchant id" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="8pz-e9-tsn">
github line link: https://github.com/cloudipsp/ios-sdk/blob/7888703c243ee23738e513f28ab43da7aa8e4d29/ExampleSwift/ExampleSwift/Base.lproj/Main.storyboard#L19