Billing Android

RxJava wrapper for Android Play Billing Library
Alternatives To Billing Android
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Play Billing Samples2,263
a month ago182apache-2.0Kotlin
Samples for Google Play In-app Billing
Android Inapp Billing V32,140
2702 years ago50November 18, 2021157otherJava
A lightweight implementation of Android In-app Billing Version 3
In App Purchase9988014a month ago105May 31, 201987otherJavaScript
A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
Play Unity Plugins379
a month ago122otherC#
The Google Play Plugins for Unity provide C# APIs for accessing various Play services
Billingx173
2 years ago4August 17, 20212apache-2.0Kotlin
Extension to the Billing Support library to support debug builds.
Googlebilling125
3 months ago3apache-2.0Java
基于com.android.billingclient:billing:1.2,对整个支付流程进行封装。
Godot Google Play Billing87
3 months ago24mitJava
Godot Android plugin for the Google Play Billing library
Google Play In App Billing Verification70
11 years ago4bsd-3-clausePHP
Billing Android41
2 years agomitKotlin
RxJava wrapper for Android Play Billing Library
Google Play Billing38211 days ago19December 08, 20223mitPHP
Google Play billing
Alternatives To Billing Android
Select To Compare


Alternative Project Comparisons
Readme

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 = ‘4.0.0’
    rxJavaVersion = ‘2.2.9’
}

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)
Popular Billing Projects
Popular Play Framework Projects
Popular Economics Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Kotlin
Play
Rxjava
Dagger
Billing
Android Component