Skip to main content

mobilePurchaseState

Type​

function

Summary​

Returns the status of an active purchase.

Syntax​

mobilePurchaseState(<purchaseID>)

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.

Parameters​

NameTypeDescription

purchaseID

a numeric purchase identifier

Examples​

put mobilePurchaseState(tPurchaseID) into tPurchaseState
if mobilePurchaseState(tPurchaseID) is "initialized" then
updateProperties
end if

Value​

NameTypeDescription

return

enum

command: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, mobileRestorePurchases, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate

function: mobilePurchases, mobilePurchaseGet, mobileCanMakePurchase, mobilePurchaseError

message: purchaseStateUpdate

Compatibility and Support​

Introduced

LiveCode 5.0.1

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?