Difference between revisions of "FBInstant.payments.getPurchasesAsync"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Fetches all of the player's unconsumed purchases. As a best practice, the game should fetch the...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.payments.getPurchasesAsync(callback,)
+
FBInstant.payments.getPurchasesAsync(callback)
 
</source>
 
</source>
'''callback:''' (function) A function that will be called with two arguments: a set of key-value pairs that purchases that the player has made for the game or nil if the operation failed, and an error code if the function failed. ''''''<br/>
+
'''callback''': (function) A function that will be called with two arguments: a set of key-value pairs that purchases that the player has made for the game or nil if the operation failed, and an error code if the function failed. ''''''<br/>

Revision as of 10:21, 23 August 2018

Available since: Gideros 2018.3

Description


Fetches all of the player's unconsumed purchases. As a best practice, the game should fetch the current player's purchases as soon as the client indicates that it is ready to perform payments-related operations. The game can then process and consume any purchases that are waiting to be consumed.

 FBInstant.payments.getPurchasesAsync(callback)

'callback: (function) A function that will be called with two arguments: a set of key-value pairs that purchases that the player has made for the game or nil if the operation failed, and an error code if the function failed. '