All Projects → vberezkin → Billing Android

vberezkin / Billing Android

Licence: mit
RxJava wrapper for Android Play Billing Library

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Billing Android

RxBilling
Reactive wrapper around the Android Billing API
Stars: ✭ 12 (-70%)
Mutual labels:  rxjava, billing
Rx.observe
Transform any method to an Rx Observable ! (VIPER)
Stars: ✭ 34 (-15%)
Mutual labels:  rxjava
Awesome Third Library Source Analysis
📖 Deep understanding of popular open source library source code (optimizing...)
Stars: ✭ 866 (+2065%)
Mutual labels:  rxjava
Android Mvp
Android Model View Presenter
Stars: ✭ 28 (-30%)
Mutual labels:  rxjava
Spring Reactive Sample
Spring 5 Reactive playground
Stars: ✭ 867 (+2067.5%)
Mutual labels:  rxjava
Statussaver For Whatsapp
A simple app to save Whatsapp Status Images! Developed using MVP, rxJava, Dagger2 etc.
Stars: ✭ 30 (-25%)
Mutual labels:  rxjava
Runtimepermission
Simpliest way to ask runtime permissions on Android, no need to extend class or override permissionResult method, choose your way : Kotlin / Coroutines / RxJava / Java7 / Java8
Stars: ✭ 860 (+2050%)
Mutual labels:  rxjava
Star Wars Shop
Simple project with clean architecture and android lifecycle
Stars: ✭ 37 (-7.5%)
Mutual labels:  rxjava
Android App Template
Kickstart your new project with Android App Template (Kotlin + MVVM + AAC + Dagger 2 + Retrofit 2 + RxJava)
Stars: ✭ 34 (-15%)
Mutual labels:  rxjava
Afmall
A pure shopping App based on Kotlin + ARouter + MVP + RxJava2 + Retrofit + Dagger2 + 七牛云 + Glide
Stars: ✭ 20 (-50%)
Mutual labels:  rxjava
Observableadapter
RecyclerView Adapter for RxJava, separates collection model from Android framework dependencies
Stars: ✭ 15 (-62.5%)
Mutual labels:  rxjava
In App Purchase
A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
Stars: ✭ 868 (+2070%)
Mutual labels:  billing
Rankmusic
RankMusic音乐排行榜 一个使用kotlin 语言开发的android项目。
Stars: ✭ 30 (-25%)
Mutual labels:  rxjava
Rxjava2 Operators Magician
你用不惯 RxJava,只因缺了这把钥匙 🔑 You are not used to RxJava, just because of the lack of this key.
Stars: ✭ 868 (+2070%)
Mutual labels:  rxjava
Rxjava Android Samples
Learning RxJava for Android by example
Stars: ✭ 7,520 (+18700%)
Mutual labels:  rxjava
Kotlin Life
App界的一股清流 音视频vr应有尽有 完全按照Material design规范设计的App (written with java and Kotlin)
Stars: ✭ 864 (+2060%)
Mutual labels:  rxjava
Billing
A general purpose interface to Stripe that's optimized for Laravel 5 SaaS applications.
Stars: ✭ 14 (-65%)
Mutual labels:  billing
Elephant
Elephant is PHPHub Community Android unofficial client, base on Material Design + MVP+RxJava+Retrofit .
Stars: ✭ 949 (+2272.5%)
Mutual labels:  rxjava
Android Checkout
Library for Android In-App Billing (Version 3+)
Stars: ✭ 986 (+2365%)
Mutual labels:  billing
Rxschedulerrule
Simple JUnit rule for overriding RxJava/RxAndroid schedulers during unit tests
Stars: ✭ 35 (-12.5%)
Mutual labels:  rxjava

billing-android

RxJava wrapper for Android Play Billing Library

Usage

Make sure that your root project build.gradle file has this section

ext {
    compileSdkVersion = 28
    androidBillingLibraryVersion = ‘1.2.2’
    rxJavaVersion = ‘2.2.3’
}

Extend BillingManager with your payment requests

fun BillingManager.startBuyingCoins(activity: Activity) {
    initiatePurchaseFlow(activity, "buy_coins", BillingClient.SkuType.INAPP)
}

Instantiate BillingModel once as singleton or via Dagger2. In every Android component where you are going to use billing, add the next lines:

@Inject
BillingModel billingModel;
private Disposable billingSubscription;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ...
    billingSubscription = billingModel.purchases.subscribe(purchases -> {
        //  Here our purchases come
    });
    ...
}

@Override
public void onDestroy() {
    ...
    billingSubscription.dispose();
    super.onDestroy();
}

To perform a purchaise, just add

BillingManager.startBuyingCoins(this)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].