store.purchase()

Type Function
Return value none
Revision Release 2024.3703
Keywords Apple, IAP, in-app purchases, purchase
See also store.init()
store.*

Overview

Initiates a purchase transaction on provided product(s) by sending out a purchase request to the store, then dispatches a storeTransaction event to the listener defined in store.init().

Syntax

store.purchase( productIdentifiers )
productIdentifiers (required)

String or Table. String or an array (table) of strings where each string represents the product identifier of an item to purchase.