Difference between revisions of "GoogleBilling:requestPurchase"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === <br /> This request sends a purchase message to the Google Play application and is the foundation of...")
 
Line 8: Line 8:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
(bool), = GoogleBilling:requestPurchase(productIdproductTypedeveloperPayload,)
+
(bool) = GoogleBilling:requestPurchase(productId,productType,developerPayload)
 
</source>
 
</source>
'''productId:''' (string)  ''''''<br/>
+
'''productId''': (string)  ''''''<br/>
'''productType:''' (string, optional)  ''''''<br/>
+
'''productType''': (string, optional)  ''''''<br/>
'''developerPayload:''' (string, optional)  ''''''<br/>
+
'''developerPayload''': (string, optional)  ''''''<br/>
 
'''Returns''' (bool) `true` if in-app billing service is available, `false` otherwise.<br/>
 
'''Returns''' (bool) `true` if in-app billing service is available, `false` otherwise.<br/>

Revision as of 11:19, 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)

'productId: (string) '
'productType: (string, optional) '
'developerPayload: (string, optional) '
Returns (bool) `true` if in-app billing service is available, `false` otherwise.