Difference between revisions of "StoreKit:purchase"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2012.2.2<br/> | '''<translate>Available since</translate>:''' Gideros 2012.2.2<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/StoreKit|StoreKit]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate><br /> | <translate><br /> | ||
− | Process a payment request. When that transaction is complete or if a failure occurs, | + | Process a payment request. When that transaction is complete or if a failure occurs, `Event.TRANSACTION` event is dispatched.<br /> |
<br /></translate> | <br /></translate> | ||
<source lang="lua"> | <source lang="lua"> |
Revision as of 09:30, 24 August 2018
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.
StoreKit:purchase(productIdentifier,quantity)
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.