This feature allows you to support In-App Purchases. Currently, only the Apple iTunes Store is supported. In the future, other store fronts may be added.
Note: Google's Android Market is now supported starting with build 2012.760. As of 4/30/2012, the Google changes have not been intergrated into the API pages See Getting Started with Android In-app Billing for more information.
Sample code for both iOS and Android is available in the Corona SDK at Samples/Networking/InAppPurchase
For more information see the In-App Purchases guide.
For Android Developers, please see: Getting Started with Android In-App Billing in Corona
Actually, this is the link:
http://developer.anscamobile.com/reference/in-app-purchases
But thanks for noting this.
So how do people currently handle in-app purchase on non-ios devices?
It's not stated anywhere, but consumables are not restored. http://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/StoreKitGuide.pdf page 19
Is there any way, how to handle error state of network? Some timeout?
For example, when user touches button for store, I want to load information about products, call store.loadProducts(). I want to provide to user some feedback, I display activity indicator at this moment. But if the wifi is off, I will wait for callback forever and application is stuck.
For loadProducts, I don't see any error APIs provided by Apple for timeouts. However, you can use the network reachability APIs to monitor if WiFi gets disconnected.
Amazon AppStore has released API for In-App purchase. Will this be a priority for Corona SDK to implement support?
Link to the documentation on In-App Purchases:
http://developer.anscamobile.com/reference/in-app-purchases
;-)
[Oops. EDITED to fix the link. Thanks ewing!]