https://github.com/cafebazaar/poolakey
Android In-App Billing SDK for Cafe Bazaar App Store
https://github.com/cafebazaar/poolakey
android bazaar billing billing-sdk cafebazaar cafebazaar-inapp-billing in-app-purchase rxandroid rxjava2 rxjava3 rxkotlin
Last synced: 11 months ago
JSON representation
Android In-App Billing SDK for Cafe Bazaar App Store
- Host: GitHub
- URL: https://github.com/cafebazaar/poolakey
- Owner: cafebazaar
- License: apache-2.0
- Created: 2019-09-27T20:08:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-17T13:55:53.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T18:06:37.459Z (12 months ago)
- Topics: android, bazaar, billing, billing-sdk, cafebazaar, cafebazaar-inapp-billing, in-app-purchase, rxandroid, rxjava2, rxjava3, rxkotlin
- Language: Kotlin
- Homepage:
- Size: 691 KB
- Stars: 73
- Watchers: 4
- Forks: 24
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://travis-ci.com/cafebazaar/Poolakey)
[](https://www.codefactor.io/repository/github/cafebazaar/poolakey) [](https://bintray.com/beta/#/cafebazaar/Poolakey?tab=packages)
-
Android In-App Billing SDK for [Cafe Bazaar](https://cafebazaar.ir/?l=en) App Store.
## Getting Started
To start working with Poolakey, you need to add its dependency into your `build.gradle` file:
### Dependency
```groovy
dependencies {
implementation "com.github.cafebazaar.Poolakey:poolakey:[latest_version]"
}
```
Then you need to add jitpack as your maven repository in `build.gradle` file:
```groovy
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
```
### How to use
For more information regarding the usage of Poolakey, please check out the [wiki](https://github.com/cafebazaar/Poolakey/wiki) page.
### Sample
There is a fully functional sample application that demonstrates the usage of Poolakey, all you have to do is cloning the project and running the [app](https://github.com/cafebazaar/Poolakey/tree/master/app) module.
### Reactive Extension Support
Yes, you've read that right! Poolakey supports Reactive Extension framework. Just add its dependency into your `build.gradle` file:
```groovy
dependencies {
// RxJava 3
implementation "com.github.cafebazaar.Poolakey:poolakey-rx3:[latest_version]"
// RxJava 2
implementation "com.github.cafebazaar.Poolakey:poolakey-rx:[latest_version]"
}
```
And instead of using Poolakey's callbacks, use the reactive fuctions:
```kotlin
payment.getPurchasedProducts()
.subscribe({ purchasedProducts ->
...
}, { throwable ->
...
})
```