Simplifies adding In App Purchases to iOS applications. Create a Banker, set its delegate and pass an array of your In App Purchase products to it, easy! The Banker handles the rest including storing the transactions and handling errors.
Important
You will need to create an In App Purchase product for your app in iTunes Connect.
Installing with CocoaPods
If you're unfamiliar with CocoaPods there is a great tutorial here to get you up to speed.
-
In Terminal navigate to the root of your project.
-
Run 'touch Podfile' to create the Podfile.
-
Open the Podfile using 'open -e Podfile'
-
Add the pod
ASBanker
to your Podfile.platform :ios pod 'ASBanker'
-
Run
pod install
. -
Open your app's
.xcworkspace
file to launch Xcode and start adding In App Purchases!
Installing manually from GitHub
- Download the
ASBanker.h
andASBanker.m
files and add them to your Xcode project. #import ASBanker.h
wherever you need it. 3 Add the 'StoreKit.framework' to your project.- Follow the included sample project to get started changing the products array for your product in iTunes Connect in 'ViewController.m'.
Running the sample project
Check out the sample project included in the repository. Just open the '.xcworkspace' file in the Sample folder and the project should build correctly.
Distributed under the MIT License.
This work is based on the original work of Paul Hudson, with permission.