Difference between revisions of "GoogleBilling:requestPurchase"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.09<br/>
 
'''Available since:''' Gideros 2012.09<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
This request sends a purchase message to the Google Play application and is the foundation of in-app billing.<br />
 
This request sends a purchase message to the Google Play application and is the foundation of in-app billing.<br />
 
You send this request when a user indicates that he or she wants to purchase an item in your application.<br />
 
You send this request when a user indicates that he or she wants to purchase an item in your application.<br />
 
Google Play then handles the financial transaction by displaying the checkout user interface.<br />
 
Google Play then handles the financial transaction by displaying the checkout user interface.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
(bool) = GoogleBilling:requestPurchase(productId,productType,developerPayload)
 
(bool) = GoogleBilling:requestPurchase(productId,productType,developerPayload)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''productId''': (string) <br/>
+
'''productId''': (string) <translate></translate> <br/>
'''productType''': (string, optional) <br/>
+
'''productType''': (string, optional) <translate></translate> <br/>
'''developerPayload''': (string, optional) <br/>
+
'''developerPayload''': (string, optional) <translate></translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (bool) `true` if in-app billing service is available, `false` otherwise.<br/>
+
'''Returns''' (bool) <translate>[[[true` if in-app billing service is available, `false]]] otherwise.</translate><br/>

Revision as of 14:33, 23 August 2018

Available since: Gideros 2012.09

Description


This request sends a purchase message to the Google Play application and is the foundation of in-app billing.
You send this request when a user indicates that he or she wants to purchase an item in your application.
Google Play then handles the financial transaction by displaying the checkout user interface.

(bool) = GoogleBilling:requestPurchase(productId,productType,developerPayload)

Parameters

productId: (string)
productType: (string, optional)
developerPayload: (string, optional)

Return values

Returns (bool) [[[true` if in-app billing service is available, `false]]] otherwise.