store.purchase()

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

Overview

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

Gotchas

This call does not work for subscription purchases.

Syntax

store.purchase( productIdentifier )
productIdentifier (required)

String. String representing the product identifier of the item to purchase.