mobileStoreCanMakePurchase

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileStoreCanMakePurchase()
Summary

Determines if in-app purchasing is available.

Introduced6.7
OSios, android
Platformsmobile
Example
answer mobileStoreCanMakePurchase()
if mobileStoreCanMakePurchases() is true then
   mobileStoreRequestProductDetails "com.runrev.sampleapp.consumable"
else 
   answer "In-app purchasing is not supported"
end if
Values
NameTypeDescription
return

Returns true if in-app purchases can be made, and false if not.

RelatedCommand: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase
Function: mobileStorePurchasedProducts, mobileStoreProductProperty, mobileStorePurchaseError
Message: purchaseStateUpdate, productRequestError, productDetailsReceived
Description

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.