Setup

Configuring Billing Services Feature

Before using any of the billing products, we need to configure them in the Essential Kit Settings under billing services.

Enable Feature

Open Essential Kit Settings and enable Billing Services feature in the inspector.

Billing Services Settings

Properties

Name

Description

Products

Collection of In-App purchase Billing products (Billing Products - See below)

Auto Finish Transactions

Automatically close the transaction once the purchase is done. Disabling this requires you to manually call FinishTransactions

Android Properties (Public Key)

Enter the public key from google play console (reference)

Billing Products

Billing product is a container to hold your in-app purchase identifiers for different platforms. Each billing product has a unique Id to identify them. Id helps in referring an in-app purchase from your code irrespective of the platform you are on and this can be any string of your choice.

Platform Id on the other hand, is the actual platform specific identifier and usually varies per platform. Specify the value in platform overrides, if you don't have a common identifier value across platforms.

You can get platform id value from iTunes Connect and Google Play console on iOS and Android respectively.

Types

You can have your purchasable items Consumable, Non-Consumable and Subscriptions.

Product Type

Description

Consumable

In-App products which can be purchased multiple times

ex: Virtual coins pack, Bullets pack etc...

Non-Consumable

In-App products which can be purchased only once

ex: Ad-Free offering, Level packs etc...

Subscription

In-App products which are time bound. ex: Ad-Free for a week or month, Battle pass etc

Properties

Billing Product Property Name

Description

Id

Identifier given to refer the billing product from code

Platform Id

Common native platform id, if any

Platform Id Overrides

If you have specific billing product id's on each platform, set them here.

Product Type

Consumable : In-App products which can be purchased multiple times

Non-Consumable : In-App products which can be purchased only one time

Title

Title for this In-App billing product (will be useful for displaying available billing products)

Description

Description for this In-App billing product (will be useful for displaying available billing products)

Payouts

Meta data that can be used to store what are offered for a purchase. Ex: 30 primary currency coins on purchase of a product

Last updated

Was this helpful?