mobilePurchaseState

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobilePurchaseState(<purchaseID>)
Summary

Returns the status of an active purchase.

Introduced5.0.1
OSios, android
Platformsmobile
Parameters
NameTypeDescription
purchaseID

a numeric purchase identifier

Example
put mobilePurchaseState(tPurchaseID) into tPurchaseState
if mobilePurchaseState(tPurchaseID) is "initialized" then
   updateProperties
end if
Values
NameTypeDescription
returninitialized: the purchase request has been created but not sent. In this state additional properties such as the item quantity can be set.
sendingRequest: the purchase request is being sent to the store/marketplace.
paymentReceived: the requested item has been paid for. The item should now be delivered to the user and confirmed cia the command.
complete: the purchase has now been paid for and delivered.
restored: the purchase has been restored after a call to . The purchase should now be delivered to the user and confirmed via the command.
cancelled: the purchase was cancelled by the user before payment was received.
error: An error occurred during the payment request. More detailed information is available from the function
RelatedCommand: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, mobileRestorePurchases, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate
Function: mobilePurchases, mobilePurchaseGet, mobileCanMakePurchase, mobilePurchaseError
Message: purchaseStateUpdate
Description

Use the mobilePurchaseState function to retrieve the status of a purchase.

The mobilePurchaseState function returns a string describing the current state of the purchase defined by purchaseID.