FBInstant.payments.purchaseAsync: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Begins the purchase flow for a specific product.<br /> <br /> <source lang="lua"> = FBInstant.p..." |
No edit summary |
||
| Line 6: | Line 6: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
FBInstant.payments.purchaseAsync(purchaseConfig,callback) | |||
</source> | </source> | ||
'''purchaseConfig | '''purchaseConfig''': (table) The purchase's configuration details. ''''''<br/> | ||
'''callback | '''callback''': (function) A function that will be called with two arguments: True when the product is successfully purchased by the player. Otherwise, it rejects if the operation failed, and an error code if the function failed. ''''''<br/> | ||
Revision as of 09:18, 23 August 2018
Available since: Gideros 2018.3
Description
Begins the purchase flow for a specific product.
FBInstant.payments.purchaseAsync(purchaseConfig,callback)
'purchaseConfig: (table) The purchase's configuration details. '
'callback: (function) A function that will be called with two arguments: True when the product is successfully purchased by the player. Otherwise, it rejects if the operation failed, and an error code if the function failed. '