Difference between revisions of "GoogleBilling:requestPurchase"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 11: Line 11:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(bool) = GoogleBilling:requestPurchase(productId,productType,developerPayload)
 
(bool) = GoogleBilling:requestPurchase(productId,productType,developerPayload)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''productId''': (string) <translate></translate> <br/>
 
'''productId''': (string) <translate></translate> <br/>

Latest revision as of 15:29, 13 July 2023


Available since: Gideros 2012.09
Class: GoogleBilling

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.