citrus / cardflight-ios

CardFlight's iOS SDK Library

Home Page:https://getcardflight.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

If you want to use the Attache reader (30 pin or lightning) then you must use the Attache subspec of the pod

platform :ios, '8.0'
pod "CardFlight/Attache"

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
  • libstdc++.6.0.9.dylib

If using the Attache library you must include:

  • ExternalAccessory.framework

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 6.1 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.

About

CardFlight's iOS SDK Library

https://getcardflight.com

License:Other


Languages

Language:Objective-C 91.6%Language:Ruby 8.4%