StoreKit:purchase

From GiderosMobile
Revision as of 14:31, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")


Available since: Gideros 2012.2.2
Class: StoreKit

Description


Process a payment request. When that transaction is complete or if a failure occurs, Event.TRANSACTION event is dispatched.

<syntaxhighlight lang="lua">

StoreKit:purchase(productIdentifier,quantity)

</source>

Parameters

productIdentifier: (string) A string used to identify a product that can be purchased from within your application.
quantity: (number, default = 1) The number of items the user wants to purchase. This value should be greater than or equal to 1.