https://github.com/cafebazaar/unitypurchasing
Cafebazzaar payment implementation for unity purchasing
https://github.com/cafebazaar/unitypurchasing
Last synced: 2 months ago
JSON representation
Cafebazzaar payment implementation for unity purchasing
- Host: GitHub
- URL: https://github.com/cafebazaar/unitypurchasing
- Owner: cafebazaar
- Created: 2021-08-16T14:03:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T09:08:25.000Z (about 3 years ago)
- Last Synced: 2025-03-26T18:06:41.948Z (3 months ago)
- Language: C#
- Homepage:
- Size: 7.7 MB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Unity purchasing v 4.0 ( Cafebazaar support )
### Step 1 - Import package:
Import latest unity package from [releases](https://github.com/manjav/unitypurchasing-cafebazaar/releases) section.
### Step 2 - Add IAP Buttons:
1. Add `IAP Button` to the scene and then select.
2. In inspector click on `IAP Catalog...` to appears IAP Catalog panel.
3. Add first product (It needs to define products in [Pishkhan](https://pishkhan.cafebazaar.ir) and use their own ID)
4. Select type of product.
5. Override title, description (optional).
6. Override ID for every store (optional - If your products ID are not the same in different stores).
7. Add all product according to steps 3~6.
8. Enable automaticlly initialize ...
9. Close IAP Catalog panel.
10. Assign product.
11. Assign title, description and price texts.
12. Delegate purchase complete/failure method.
13. Add button for all product according to steps 10~12.
### Step 3 - Insert packagename:
Override packagename in Edit -> Project Settings -> Player -> Other Settings
### Step 4 - Select store:
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.