CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Ross Gibson.
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.
For a detailed tutorial on prepaing your app for In App Purchases, click here
Installing with CocoaPods
If you're unfamiliar with CocoaPods there is a great tutorial here to get you up to speed.
Add the pod ASBanker
to your Podfile.
platform :ios
pod ASBanker'
Run pod install
.
.xcworkspace
file to launch Xcode and start adding In App Purchases!Installing manually from GitHub
ASBanker.h
and ASBanker.m
files and add them to your Xcode project.#import ASBanker.h
wherever you need it.
3 Add the 'StoreKit.framework' to your project.Running the sample project
Check out the sample project included in the repository. Open the '.xcodeproj' file in the sample project folder and the project should build correctly.
To run the sample project with your own In App Purchases you'll need to change a few things:
Set the Bundle Identifier and the Team for the project in Xcode.
Chnage the Product Identifiers to your own. In the sample project these are in Constants.m and used in ProductTableViewController.m.
Version 2.0.0
Version 1.1.1
Version 1.1.0
Version 1.0.0
Distributed under the MIT License.
This work is based on the original work of Paul Hudson, with permission.