Difference between revisions of "FBInstant.payments.consumePurchaseAsync"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Consumes a specific purchase belonging to the current player. Before provisioning a product's e...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.payments.consumePurchaseAsync(purchaseTokencallback,)
+
FBInstant.payments.consumePurchaseAsync(purchaseToken,callback)
 
</source>
 
</source>
'''purchaseToken:''' (string) The purchase token of the purchase that should be consumed. ''''''<br/>
+
'''purchaseToken''': (string) The purchase token of the purchase that should be consumed. ''''''<br/>
'''callback:''' (function) A function that will be called with two arguments: True when the purchase has been consumed successfully otherwise the operation failed, and an error code if the function failed. ''''''<br/>
+
'''callback''': (function) A function that will be called with two arguments: True when the purchase has been consumed successfully otherwise the operation failed, and an error code if the function failed. ''''''<br/>

Revision as of 10:17, 23 August 2018

Available since: Gideros 2018.3

Description


Consumes a specific purchase belonging to the current player. Before provisioning a product's effects to the player, the game should request the consumption of the purchased product. Once the purchase is successfully consumed, the game should immediately provide the player with the effects of their purchase.

 FBInstant.payments.consumePurchaseAsync(purchaseToken,callback)

'purchaseToken: (string) The purchase token of the purchase that should be consumed. '
'callback: (function) A function that will be called with two arguments: True when the purchase has been consumed successfully otherwise the operation failed, and an error code if the function failed. '