This repo has been deprecated and is no longer being maintained or updated.
CardFlight v3 can now be found here
CardFlight iOS SDK Library
The CardFlight iOS SDK is used to process card present and card not-present transactions in your iOS application.
CardFlight's SDK is based around keeping it as simple as possible while keeping the highest level of security at the forefront of all that we do. Take out the pain of PCI-compliance when building your app.
Authentication is done through your API Keys and processing is done through the Account Tokens. All connections to CardFlight's API are done through HTTPS over HSTS.
CocoaPods is the recommended method of installing CardFlight.
platform :ios, '8.0' pod "CardFlight"
Add the libCardFlightLibrary.a and all header files into your project. Add the following frameworks to you project:
The SDK includes a logging mode to assist with debugging that will print out statements in the console. Be sure to disable it in the production code.
Add CardFlight.h to your AppDelegate and set the API Key and Account Token.
[[CFTSessionManager sharedInstance] setApiToken:@"e9cb15260f08e438b782952895d4ba4d" accountToken:@"acc_04ff8bf654afb265"];
The CardFlight SDK is broken into easy-to-manage components. You just include the ones that you want to use in the header files of the classes that need to access those components.
- Reader Initialization
- Swipe Card
- Swipe Response
- Keyed Entry
- Keyed Response
- Charge Card
- Refund Charge
All CardFlight readers work on iOS version 8.0 or above. Our SDK supports a wide array of iOS platforms. Click here to view an updated list.
Looking for Android?
We've got you covered. Click here to learn more about our CardFlight Android SDK.