Livecode Wiki
Advertisement

Determines if in-app purchasing is available.Syntax:

mobileStoreCanMakePurchase()

Examples:

answer mobileStoreCanMakePurchase()
if mobileStoreCanMakePurchases() is true then
   mobileStoreRequestProductDetails "com.runrev.sampleapp.consumable"
else 
   answer "In-app purchasing is not supported"
end if

Use the mobileStoreCanMakePurchase function to determine if in-app purchasing is available.

The command mobileStoreCanMakePurchase is used to determine if in-app purchasing is available.

See also: mobileStoreDisablePurchaseUpdates (command),mobileStoreEnablePurchaseUpdates (command),mobileStoreRequestProductDetails (command),mobileStoreMakePurchase (command),mobileStoreSetProductType (command),mobileStoreConsumePurchase (command),mobileStoreConfirmPurchase (command),mobileStoreVerifyPurchase (command),mobileStorePurchasedProducts (function),mobileStoreProductProperty (function),mobileStorePurchaseError (function),purchaseStateUpdate (message),productRequestError (message),productDetailsReceived (message),

Advertisement