store.purchase()

Type Function
Return value none
Revision Release 2024.3703
Keywords Samsung, 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 [,passThroughParam]  )
productIdentifier (required)

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

passThroughParam (optional)

String. An optional string, unique identifier (maximum: 255 bytes) assigned by your Android app to the purchase and payment transaction.