Skip to main content

mobilePurchaseCreate

Type​

command

Summary​

Create a new purchase.

Syntax​

mobilePurchaseCreate <productID>

Description​

Use mobilePurchaseCreate to create a new purchases.

The command mobilePurchaseCreate is used to create a purchaseId for a particular productId.

The productId is the identifier of the in-app purchase you created in iTunesConnect/Market Place and wish to purchase.

Parameters​

NameTypeDescription

productID

The identifier of the requested item.

Examples​

mobilePurchaseCreate theProductId
put the result into thePurchaseId

Value​

NameTypeDescription

the result

The purchaseId is returned in the result. This is used to identify the new purchase request.

message: purchaseStateUpdate

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

function: mobilePurchaseState, mobilePurchaseError, mobileCanMakePurchase, mobilePurchaseGet, mobilePurchases

Compatibility and Support​

Introduced

LiveCode 5.0.1

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?