Skip to content

andreaperizzato/spreedly-ios

 
 

Repository files navigation

Spreedly iOS SDK

CI Status Version License Platform

If you’re building an iOS app and want to accept payments, the Spreedly iOS library can make it easier. It removes the burden of PCI compliance by making sure sensitive credit card information never touches your servers. Just a token associated with that payment method. Our library also supports Apple Pay so you can enable users to make payments without entering their credit card information.

Requirements

Our SDK is compatible with iOS apps supporting iOS 9.0 and above and requires Xcode 8.0+ to build the source.

Usage

There is an example app included in the respository. To try it out, clone the repo and run the Example app. It includes creating a payment method token from a custom credit card form as well as from an Apple Pay payment authorization.

If you're planning on using Apple Pay, be sure to checkout the Apple developer docs to get your app ready to accept Apple Pay payment information and the Spreedly Apple Pay guide to setup your backend.

More documentation and a guide to using the library can be found on the Spreedly docs.

Installation

Spreedly is available through CocoaPods. To install it, simply add Spreedly to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target 'App' do
  pod 'Spreedly'
end

If you're integrating into an existing Objective-C app, be sure to add the header file in the appropriate view controller.

#import "Spreedly-Swift.h"

Running Tests

  1. Open Spreedly.xcworkspace
  2. Choose the "Spreedly" scheme
  3. Run Product -> Test

Author

David Santoso, [email protected]

License

Spreedly is available under the MIT license. See the LICENSE file for more info.

Packages

No packages published

Languages

  • Swift 95.7%
  • Ruby 3.4%
  • Objective-C 0.9%