FBInstant.payments: Difference between revisions

From GiderosMobile
No edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
<!-- GIDEROSOBJ:FBInstant.payments-->
<!-- GIDEROSOBJ:FBInstant.payments-->
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
=== <translate>Description</translate> ===
=== <translate>Description</translate> ===
<translate><br />
Contains functions and properties related to payments and purchases of game products.
Contains functions and properties related to payments and purchases of game products.<br /></translate>
 
{|-
{|-
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
Line 15: Line 15:
[[Special:MyLanguage/FBInstant.payments.onReady|FBInstant.payments.onReady]] ''<translate>Sets a callback to be triggered when Payments operations are available.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.onReady(callback) Sets a callback to be triggered when Payments operations are available. -->
[[Special:MyLanguage/FBInstant.payments.onReady|FBInstant.payments.onReady]] ''<translate>Sets a callback to be triggered when Payments operations are available.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.onReady(callback) Sets a callback to be triggered when Payments operations are available. -->
[[Special:MyLanguage/FBInstant.payments.purchaseAsync|FBInstant.payments.purchaseAsync]] ''<translate>Begins the purchase flow for a specific product.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.purchaseAsync(purchaseConfig,callback) Begins the purchase flow for a specific product. -->
[[Special:MyLanguage/FBInstant.payments.purchaseAsync|FBInstant.payments.purchaseAsync]] ''<translate>Begins the purchase flow for a specific product.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.purchaseAsync(purchaseConfig,callback) Begins the purchase flow for a specific product. -->
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== <translate>Events</translate> ===
=== <translate>Events</translate> ===
Line 20: Line 21:
|}
|}


{{Gideros deco stars01}}
*'''[[Facebook_Instant_Games]]'''
{{GIDEROS IMPORTANT LINKS}}
{{GIDEROS IMPORTANT LINKS}}

Revision as of 16:45, 25 March 2020

Supported platforms:
Available since: Gideros 2018.3

Description

Contains functions and properties related to payments and purchases of game products.

Methods

FBInstant.payments.consumePurchaseAsync Consumes a specific purchase belonging to the current player.
FBInstant.payments.getCatalogAsync Fetches the game's product catalog.
FBInstant.payments.getPurchasesAsync Fetches all of the player's unconsumed purchases.
FBInstant.payments.onReady Sets a callback to be triggered when Payments operations are available.
FBInstant.payments.purchaseAsync Begins the purchase flow for a specific product.

Events

Constants