Difference between revisions of "FBInstant.payments"

From GiderosMobile
Line 10: Line 10:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Methods</translate> ===
 
=== <translate>Methods</translate> ===
[[Special:MyLanguage/FBInstant.payments.consumePurchaseAsync|FBInstant.payments.consumePurchaseAsync]] ''<translate>Consumes a specific purchase belonging to the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.consumePurchaseAsync -->
+
[[Special:MyLanguage/FBInstant.payments.consumePurchaseAsync|FBInstant.payments.consumePurchaseAsync]] ''<translate>Consumes a specific purchase belonging to the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.consumePurchaseAsync(purchaseToken,callback) Consumes a specific purchase belonging to the current player. -->
[[Special:MyLanguage/FBInstant.payments.getCatalogAsync|FBInstant.payments.getCatalogAsync]] ''<translate>Fetches the game's product catalog.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.getCatalogAsync -->
+
[[Special:MyLanguage/FBInstant.payments.getCatalogAsync|FBInstant.payments.getCatalogAsync]] ''<translate>Fetches the game's product catalog.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.getCatalogAsync(callback) Fetches the game's product catalog. -->
[[Special:MyLanguage/FBInstant.payments.getPurchasesAsync|FBInstant.payments.getPurchasesAsync]] ''<translate>Fetches all of the player's unconsumed purchases.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.getPurchasesAsync -->
+
[[Special:MyLanguage/FBInstant.payments.getPurchasesAsync|FBInstant.payments.getPurchasesAsync]] ''<translate>Fetches all of the player's unconsumed purchases.</translate>''<br/><!-- GIDEROSMTD:FBInstant.payments.getPurchasesAsync(callback) Fetches all of the player's unconsumed purchases. -->
[[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 -->
+
[[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 -->
+
[[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> ===
 
=== <translate>Constants</translate> ===
 
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 16:32, 13 September 2018


Supported platforms: Platform html5.png
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