PlayerIO

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

Publishing Network Payments through PayVault

If your game already uses the PlayerIO Backend Services and has integrated with our client libraries, you can use PayVault to handle all payments. This way you can use convenience methods in the client libraries to start a payment, and if it completes successfully, the virtual goods that the user purchased will be tracked by PayVault.

Setup

There is very little setup needed to get started with Publishing Network Payments through PayVault.

If you want to allow coin purchases through this system, you need to add one or more coin price points in the Payments tab on the Publishing Network settings page in the Control Panel. Each price point is just a way of configuring that the user can buy X coins for [minor units] in [currency].

You specify price points as string in the form of [minor units][currency]=[coins], with multiple price points separated with comma. For example, the string: '100USD=50,200USD=125' means that users can buy 50 coins for $1 USD or 125 coins for $2 USD.

If you want to allow item purchases through this system, you need to set up PayVault Items in the PayVault Control Panel.

Buying Coins: ShowBuyCoinsDialog()

Example of buying coins with Publishing Network Payments in C#. This method call will automatically open the Payment Dialog, and the callback will fire when the dialog closes.

Required ShowBuyCoinsDialog() Arguments
name A short name describing the purchase, which will be used as the title of the payment dialog.
description A description of the purchase, which will be shown in the payment dialog.
icon A url that points to a 75x75 px image, which will be shown in the payment dialog.
currency The currency to charge the user in. Currently we only support 'usd'

Buying Items: ShowBuyItemsDialog()

Example of buying an item with Publishing Network Payments in C#. This method call will automatically open the Payment Dialog, and the callback will fire when the dialog closes.

Required ShowBuyItemsDialog() Arguments
name A short name describing the purchase, which will be used as the title of the payment dialog.
description A description of the purchase, which will be shown in the payment dialog.
icon A url that points to a 75x75 px image, which will be shown in the payment dialog.
currency The currency to charge the user in. Currently we only support 'usd'