TOC
Book’s Table Of Content
Project Properties
Book Shelf Type

-
Advanced Settings > End application on suspend
uncheck it because IAP dialog from google play store app suspends your app. So do not make it end your app while purchasing in progress
-
Advanced Settings > Book Shelf Project
- embedded
- downloadable disabled. The toc project' itself is not downloadable

Monetization > In-App Purchase

In-App Purchase panel, choose unlock Bookshef Book and then clock + icon to add a new product

It opens the add new product window

Add book names with the following rule for ID
- Num Of Pages: 6
- Description: book’s short description
- Versions: None
for instance, the downlodable book01 consists of 6 pages and the description “book01 information test”. This description will be used in INFO page
Shelf page
Icons
{book name}Icon layer will load {book name}’s thumbnail image and purchase/saving/saved/download buttons are attached dynamically when the app runs.

for instance, book01 and book02 are registered in In-App Purchase table in Project properties, book01Icon and book02Icon are created.
Buttons
Need to create the following layers with the names because store/UI.lua references each layer name by the name, don’t use another name of your own. The interactions are automatically attached by store/UI.lua

- purchaseBtn
- savingTxt
- savedBtn
- downloadBtn
Restore
create restoreBtn layer. The interactions are automatically attached by store/UI.lua

- restoreBtn
Action - act_buy

Add Buy Product actions for your items. From Actions tool, select Monetization > Buy Product.

this tells which products should be purchased from the {book name}Icon.
- book01
- book02

INFO page
the following layers are created. The interactions are automatically attached by store/UI.lua

- infoTxt to be text replacement
- bookXXIcon
- purchaseBtn
- savingTxt
- savedBtn
- downloadBtn
- hideOverlayBtn
text replacement
infoTxt layer needs to be text replacement.

