CardFlight's iOS SDK Library
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
CFTAPIResource.h
CFTBaseReader.h
CFTCard.h
CFTCharge.h
CFTCustomEntryTextField.h
CFTCustomView.h
CFTEnum.h
CFTPaymentView.h
CFTReader.h
CFTSessionManager.h
CHANGELOG.md
CardFlight.h
LICENCE
README.md
libCardFlightLibrary.a

README.md

Deprecated Repo

This repo has been deprecated and is no longer being maintained or updated.

CardFlight v3 can now be found here

CardFlight iOS SDK Library

Introduction

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.

Setup

CocoaPods Installation

CocoaPods is the recommended method of installing CardFlight.

Podfile
platform :ios, '8.0'
pod "CardFlight"

Manual Installation

Add the libCardFlightLibrary.a and all header files into your project. Add the following frameworks to you project:

  • AVFoundation.framework
  • AudioToolbox.framework
  • MediaPlayer.framework
  • MessageUI.framework
  • CoreGraphics.framework
  • ExternalAccessory.framework
  • libstdc++.6.0.9.dylib

Logging

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.

- (void)setLogging:(BOOL)logging;

Initialize

Add CardFlight.h to your AppDelegate and set the API Key and Account Token.

Example
[[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.

SDK Documentation

Supported Platforms

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.