Difference between revisions of "StoreKit:purchase"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.2.2<br/> === Description === <br /> Process a payment request. When that transaction is complete or if a failure occurs, `Event.T...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.2.2<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2012.2.2<br/>
<br />
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/StoreKit|StoreKit]]<br/>
Process a payment request. When that transaction is complete or if a failure occurs, `Event.TRANSACTION` event is dispatched.<br />
+
=== <translate>Description</translate> ===
<br />
+
<translate><br />
<source lang="lua">
+
Process a payment request. When that transaction is complete or if a failure occurs, [[Special:MyLanguage/Event.TRANSACTION|Event.TRANSACTION]] event is dispatched.<br />
= StoreKit:purchase(productIdentifierquantity,)
+
<br /></translate>
</source>
+
<syntaxhighlight lang="lua">
'''productIdentifier:''' (string) A string used to identify a product that can be purchased from within your application. ''''''<br/>
+
StoreKit:purchase(productIdentifier,quantity)
'''quantity:''' (number, default = 1) The number of items the user wants to purchase. This value should be greater than or equal to 1. ''''''<br/>
+
</syntaxhighlight>
 +
=== <translate>Parameters</translate> ===
 +
'''productIdentifier''': (string) <translate>A string used to identify a product that can be purchased from within your application.</translate> <br/>
 +
'''quantity''': (number, default = 1) <translate>The number of items the user wants to purchase. This value should be greater than or equal to 1.</translate> <br/>

Latest revision as of 14:33, 13 July 2023


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.