HTML5 (Javascript) Client Reference
Class publishingNetworkPayments
Language: Javascript (HTML5)
The PlayerIO Publishing Network Payments service. This class is used to initiate in-game payments for games that are published on the PlayerIO Publishing Network.
Example
Showing a buy coins dialog
Example
Showing a buy items dialog
Methods | ||||
---|---|---|---|---|
|
||||
|
publishingNetworkPayments.showBuyCoinsDialog
|
Shows a dialog for buying coins
Arguments
coinAmount:int | |
The amount of coins to buy | |
purchaseArguments:object | |
Any additional information that is needed to show the payment dialog | |
successCallback:function(result) | |
Callback function that will be called with the result | |
errorCallback:function(PlayerIOError) | |
Callback function that will be called if an error occurs. |
publishingNetworkPayments.showBuyItemsDialog
|
Shows a dialog for buying items
Arguments
items:object[] | |
A list of items to buy, together with any additional payload. | |
purchaseArguments:object | |
Any additional information that is needed to show the payment dialog | |
successCallback:function(result) | |
Callback function that will be called with the result | |
errorCallback:function(PlayerIOError) | |
Callback function that will be called if an error occurs. |