Type Function Library store.* Return value Boolean Revision Current Public Release (2013.2076) Keywords iap, in-app purchase, in-app billing, purchases Sample code /CoronaSDK/SampleCode/Store/InAppPurchase See also store.purchase()
This property is
true if purchases are allowed,
iOS devices have a setting that disables purchasing. A common case for this is to prevent children from accidentally purchasing things without permission. Corona provides an API to check whether purchasing is possible. Use this preemptively to avoid having your users navigate through many purchase steps only to find out that purchasing is forbidden.
if store.canMakePurchases then store.purchase( listOfProducts ) else print("Store purchases are not available") end