Skip to main content

In-App Products

To monetize your game, you will need to set up In-App Products (IAP) for players to purchase.

info

Currently, our system exclusively supports One-Time Products (non-renewing purchases).

Creating a New Product

To create an in-app product inside the game, navigate to the shop folder within your Unity project: Assets > _Main > Shop

Inside this folder, you will see your existing shop configurations:

Access Shop

To generate a new product data file:

  1. Right-click anywhere inside the folder window.
  2. Select Create > Interactive Story > Shop > Product.
Create IAP

Data Properties

When you select your newly created shop product, the Inspector window will display several configuration fields. Here is a breakdown of what each property does:

ParameterTypeOptions / FormatDescription
Item Idstringsnake_case (e.g., starter_pack)The unique internal identifier for this product.
Product Idstringe.g., com.companyname.productname.productidThe exact product ID as it is set up in your Google Play Console.
Item NamestringAny textThe display name of the product shown to the player.
Item DescriptionstringAny textA short description detailing what the player gets.
IconsList (Sprite)Image assetThe visual icons for the item. Note: Currently, the system only uses the first sprite in the list.
CategoryselectionConsumablesIAP or SubscriptionIAPThe type of product, which must match your Google Play setup.
Purchase CooldownstringTime format (e.g., 1 day or 86400000)The restock timer after a purchase. Can be written in plain English days or in milliseconds.
Item CoststringNumeric valueThe base game currency cost. Note: Currently, we only support real money purchases.
Real Money Cost Fallbackstringe.g., $0.99The default text displayed if the game fails to fetch the live localized price from the app store.
RewardsList (string)<amount> <currency>The actual items granted upon a successful purchase (e.g., 10 gems).

Example Configuration

Once your in-app product is fully configured, the data inspector will render the settings clearly.

Access Shop

Here is a practical example of how you might fill out the fields for a basic currency pack:

Item Id: crystals_pack_1
Product Id: com.thistlebee.storylume.crystals_pack1
Item Name: Crystals Pack 1
Category: ConsumablesIAP
Real Money Cost Fallback: $1.99
Rewards:
- Element 0: 20 gems

Creates a consumable product called "Crystals Pack 1" that rewards the player with 20 gems upon a successful $1.99 real-money purchase.