ios-samples/StoreKit
Brad Umbaugh 3392dd3a8e Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
..
Consumables Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
HostedNonConsumables Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
HostedProductsXcode [storekit] fix bug #11356 product definitions were missing from iTunes Connect 2013-06-03 14:57:58 -07:00
NonConsumables Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
ProductView Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
Screenshots [StoreKit] add in-app purchase samples 2012-09-20 21:49:22 +10:00
SharedCode fix string formatting, courtesy @tomspilman 2017-03-28 18:14:49 -07:00
Metadata.xml Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
README.md [StoreKit] add in-app purchase samples 2012-09-20 21:49:22 +10:00

README.md

In-App Purchase Samples

This sample contains four projects:

  • Consumable purchases docs

  • Non-Consumable purchases docs

  • Non-Consumable purchases using iOS 6 hosted content docs

  • ProductView using iOS 6 feature purchase iTunes/App Store/iBookstore content in your app docs

There is also a directory containing the Xcode projects that are used to build Hosted Content for iOS 6 in-app purchases.

In-App Purchasing

screenshot screenshot screenshot

NOTE: it does NOT demonstrate RECEIPT VERIFICATION, so you'll have to add this in yourself.

You might also consider services like http://urbanairship.com/ or http://www.beeblex.com/ (although I have not tried them, so can't recommend).

Check out @redth's server-side code to help build your own receipt verification logic with ASP.NET:

https://github.com/Redth/APNS-Sharp/tree/master/JdSoft.Apple.AppStore

FYI the sample code is based in-part on @jtclancey's AppStore code here:

https://github.com/Clancey/ClanceyLib

Store Product View

This sample demonstrates the new iOS 6 SKStoreProductViewController that lets applications display iTunes, App Store and iBookstore products for review or purchase.

screenshot

Setup

There's a bit of set-up required for In-App Purchases (registering your bank details with Apple, setting up the products in the iOS Developer Portal, Provisioning your app correctly). These steps are the same for MonoTouch and Objective-C, so Apple's setup doco might help [1]. You should also read Apple's In-App Purchase programming docs [2], for familiarity.

[1] http://developer.apple.com/library/ios/#technotes/tn2259/_index.html

[2] https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction/Introduction.html