Difference between revisions of "GoogleBilling:checkBillingSupported"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 10: Line 10:
 
in-app billing.<br />
 
in-app billing.<br />
 
<br /></translate>
 
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(bool) = GoogleBilling:checkBillingSupported(productType)
 
(bool) = GoogleBilling:checkBillingSupported(productType)
 
</source>
 
</source>

Revision as of 15:28, 13 July 2023


Available since: Gideros 2012.09
Class: GoogleBilling

Description


This request verifies that the Google Play application supports in-app billing.
You usually send this request when your application first starts up. This request is
useful if you want to enable or disable certain UI features that are relevant only to
in-app billing.

<syntaxhighlight lang="lua"> (bool) = GoogleBilling:checkBillingSupported(productType) </source>

Parameters

productType: (string, optional) The item type. It can be GoogleBilling.INAPP or GoogleBilling.SUBS.

Return values

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