mobileStoreMakePurchase | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Create and send a request for a new purchase. | ||||||||||||
Introduced | 6.7 | ||||||||||||
OS | ios, android | ||||||||||||
Platforms | mobile | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Command: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, and, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase Function: mobileStoreProductProperty, mobileStorePurchasedProducts, mobileStorePurchaseError, mobileStoreCanMakePurchase Message: purchaseStateUpdate, productRequestError, productDetailsReceived | ||||||||||||
Description | Use the mobileStoreMakePurchase command to create and send a request for a new purchase. The command mobileStoreMakePurchase is used to create and send a request for a new purchase. The productID is the identifier of the in-app purchase you created and wish to buy in the vendor's App Store. The quantity is the the quantity of the in-app purchase to buy. This is used for iOS, and should be used on consumable items. For Android, you must set the quantity to "1". If you want to buy more than one consumable item, you have to purchase them one at a time. The developerPayload is a string that contains additional purchase information. This only is used for Android stores.
|