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.
Our SDK is compatible with iOS apps supporting iOS 9.0 and above and requires Xcode 8.0+ to build the source.
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.
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"
- Open Spreedly.xcworkspace
- Choose the "Spreedly" scheme
- Run Product -> Test
David Santoso, [email protected]
Spreedly is available under the MIT license. See the LICENSE file for more info.