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...") |
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.09<br/> | + | <languages /> |
− | === Description === | + | '''<translate>Available since</translate>:''' Gideros 2012.09<br/> |
− | <br /> | + | '''<translate>Class</translate>:''' [[Special:MyLanguage/GoogleBilling|GoogleBilling]]<br/> |
+ | === <translate>Description</translate> === | ||
+ | <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> |
− | < | + | <syntaxhighlight lang="lua"> |
− | (bool) | + | (bool) = GoogleBilling:requestPurchase(productId,productType,developerPayload) |
− | </ | + | </syntaxhighlight> |
− | '''productId | + | === <translate>Parameters</translate> === |
− | '''productType | + | '''productId''': (string) <translate></translate> <br/> |
− | '''developerPayload | + | '''productType''': (string, optional) <translate></translate> <br/> |
− | '''Returns''' (bool) | + | '''developerPayload''': (string, optional) <translate></translate> <br/> |
+ | === <translate>Return values</translate> === | ||
+ | '''<translate>Returns</translate>''' (bool) <translate>''true'' if in-app billing service is available, ''false'' otherwise.</translate><br/> |
Latest revision as of 14: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.