mobilePurchaseGet

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobilePurchaseGet(<purchaseID>, <propertyName>)
Summary

Returns the value of a property of an in-app purchase.

Introduced5.0.1
OSios, android
Platformsmobile
Parameters
NameTypeDescription
purchaseID

a numeric purchase request identifier.

propertyName

the name of a purchase request property.

"quantity": The number of items purchased.
"productID": The identifier of the purchased product.
"purchaseDate": The date the purchase or restore request was sent.
"transactionIdentifier": The unique identifier of a successful purchase or restore.
"receipt": A block of data that can be used to confirm the purchase from a remote server with the iTunes store.
"originalPurchaseDate": For restored purchases only, the date of the original purchase.
"originalTransactionIdentifier": For restored purchases only, the transaction identifier of the original purchase.
"originalReceipt": For restored purchases only, the receipt of the original purchase.
Example
put mobilePurchaseGet(tPurchaseID, "quantity") into tQuantity
Values
NameTypeDescription
return

Returns the value of the property, propertyName, for the in-app purchase, purchaseID.

RelatedCommand: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, mobileRestorePurchases, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate
Function: mobilePurchaseState, mobilePurchaseError, mobileCanMakePurchase, mobilePurchases
Message: purchaseStateUpdate
Description

Use the mobilePurchaseGet function to get the value of a property of an in-app purchase.

The mobilePurchaseGet function returns the value of an in-app purchase property.