Binpress components2013-04-09T22:48:55+00:00Zend_Feed_Writerhttp://www.binpress.comBinpresscontact@binpress.comhttp://www.binpress.com2013-04-09T22:48:55+00:002013-04-09T22:48:55+00:00http://www.binpress.com/app/inapp-purchase-manager-for-iphone-and-ipad/1390Ben Smileynoreply@binpress.comhttp://www.binpress.comdev/profile/14290This 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 timeoutLack of internet connectionPurchase failedPurchase cancelledEtc...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 identifierRestore previous purchasesGet a list of available in-app purchasesFind out if a product has already been purchasedThe 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!