Binpress components 2013-04-09T22:48:55+00:00 Zend_Feed_Writer http://www.binpress.com Binpress contact@binpress.com http://www.binpress.com <![CDATA[In-App Purchase Manager for iPhone and iPad - Objective-C | UIKit | Ecommerce]]> 2013-04-09T22:48:55+00:00 2013-04-09T22:48:55+00:00 http://www.binpress.com/app/inapp-purchase-manager-for-iphone-and-ipad/1390 Ben Smiley noreply@binpress.com http://www.binpress.comdev/profile/14290 This this class manages the whole process of making or restoring an in-app purchase. It's been extensively tested and is in active use on multiple App-store apps. In-app purchases are difficult to implement because they involve lots of asynchronous calls to the app store. It's also necessary to handle all the possible errors that can occur: Connection timeout Lack of internet connection Purchase failed Purchase cancelled Etc... Using this class, if an error is received, a customizable alert message is displayed notifying the user of the problem. This component encapsulates the whole process providing providing simple useful methods to: Buy a product given a product identifier Restore previous purchases Get a list of available in-app purchases Find out if a product has already been purchased The class automatically records which products have been purchased and saves the information in NSUserDefaults. While the request is being made, the class automatically deactivates touch on the current view and displays a waiting message. The result of the transaction is provided by registering a delegate with the in-app purchase manager class. The delegate allows the outcome of the transaction to be handled. Notes: This component isn't applicable for in-app purchase which needs to be downloaded. It's only applicable for in-app purchases which are already included in the app and which are unlocked by setting a flag. This component is aimed at iOS 6. It hasn't been tested it with iOS 5. If you want to use it with iOS 5 please be aware that there might be issues - however I am happy to help you solve any issues you might find. To use this component, you need to have some knowledge of how in-app purchases work. It simplifies the process but it's still necessary to setup the in-app purchases in iTunes connect. The screen shots are from an app where this product is enabled. This product is just the controller class not the app!