PlayerIO

The fastest way to build online games without breaking a sweat.

.NET Client Reference

Multiplayer  class documentationClass PublishingNetworkPayments

Namespace: PlayerIOClient
Language: C# / .NET

The PlayerIO Publishing Network payments service

Methods

 
public void
ShowBuyCoinsDialog (int coinAmount, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback, Callback<PlayerIOError> errorCallback)

Shows a dialog for buying coins.

public void
ShowBuyCoinsDialog (int coinAmount, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback)

Shows a dialog for buying coins.

public void
ShowBuyItemsDialog (BuyItemInfo[] items, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback, Callback<PlayerIOError> errorCallback)

Shows a dialog for buying items.

public void
ShowBuyItemsDialog (BuyItemInfo[] items, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback)

Shows a dialog for buying items.

PublishingNetworkPayments.ShowBuyCoinsDialog

public void
ShowBuyCoinsDialog (int coinAmount, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback, Callback<PlayerIOError> errorCallback)

Shows a dialog for buying coins.

Arguments

int coinAmount
The amount of coins to buy.
Dictionary<string, string> purchaseArguments
Any additional information that is needed to show the payment dialog.
Callback<Dictionary<string, string>> successCallback
Callback that will be called with the result of the payment dialog.
Callback<PlayerIOError> errorCallback
Callback that will be called if the dialog fails.

PublishingNetworkPayments.ShowBuyCoinsDialog

public void
ShowBuyCoinsDialog (int coinAmount, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback)

Shows a dialog for buying coins.

Arguments

int coinAmount
The amount of coins to buy.
Dictionary<string, string> purchaseArguments
Any additional information that is needed to show the payment dialog.
Callback<Dictionary<string, string>> successCallback
Callback that will be called with the result of the payment dialog.

PublishingNetworkPayments.ShowBuyItemsDialog

public void
ShowBuyItemsDialog (BuyItemInfo[] items, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback, Callback<PlayerIOError> errorCallback)

Shows a dialog for buying items.

Arguments

BuyItemInfo[] items
Each BuyItemInfo instance contains the key of the item to buy and any additional payload.
Dictionary<string, string> purchaseArguments
Any additional information that is needed to show the payment dialog.
Callback<Dictionary<string, string>> successCallback
Callback that will be called with the result of the payment dialog.
Callback<PlayerIOError> errorCallback
Callback that will be called if the dialog fails.

PublishingNetworkPayments.ShowBuyItemsDialog

public void
ShowBuyItemsDialog (BuyItemInfo[] items, Dictionary<string, string> purchaseArguments, Callback<Dictionary<string, string>> successCallback)

Shows a dialog for buying items.

Arguments

BuyItemInfo[] items
Each BuyItemInfo instance contains the key of the item to buy and any additional payload.
Dictionary<string, string> purchaseArguments
Any additional information that is needed to show the payment dialog.
Callback<Dictionary<string, string>> successCallback
Callback that will be called with the result of the payment dialog.