Import latest unity package from releases section.
- Add
IAP Button
to the scene and then select. - In inspector click on
IAP Catalog...
to appears IAP Catalog panel. - Add first product (It needs to define products in Pishkhan and use their own ID)
- Select type of product.
- Override title, description (optional).
- Override ID for every store (optional - If your products ID are not the same in different stores).
- Add all product according to steps 3~6.
- Enable automaticlly initialize ...
- Close IAP Catalog panel.
- Assign product.
- Assign title, description and price texts.
- Delegate purchase complete/failure method.
- Add button for all product according to steps 10~12.
Override packagename in Edit -> Project Settings -> Player -> Other Settings
Select your store: Open BillingMode
file in Resources and change androidStore
from Google
to Cafebazaar
or other stores.
{"androidStore":"Cafebazaar"}
Older Unity versions :
If you use unity 2019 and older versions, find and open bazaar-billing-x.x.x.aar
, then remove queries
node in AndroidManifest.xml
.
Attention!
Keep in mind, that builds in these versions, do not support android 11+ devices.