Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Play Billing Samples | 2,263 | a month ago | 182 | apache-2.0 | Kotlin | |||||
Samples for Google Play In-app Billing | ||||||||||
Android Inapp Billing V3 | 2,140 | 270 | 2 years ago | 50 | November 18, 2021 | 157 | other | Java | ||
A lightweight implementation of Android In-app Billing Version 3 | ||||||||||
In App Purchase | 998 | 80 | 14 | a month ago | 105 | May 31, 2019 | 87 | other | JavaScript | |
A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows. | ||||||||||
Play Unity Plugins | 379 | a month ago | 122 | other | C# | |||||
The Google Play Plugins for Unity provide C# APIs for accessing various Play services | ||||||||||
Billingx | 173 | 2 years ago | 4 | August 17, 2021 | 2 | apache-2.0 | Kotlin | |||
Extension to the Billing Support library to support debug builds. | ||||||||||
Googlebilling | 125 | 3 months ago | 3 | apache-2.0 | Java | |||||
基于com.android.billingclient:billing:1.2,对整个支付流程进行封装。 | ||||||||||
Godot Google Play Billing | 87 | 3 months ago | 24 | mit | Java | |||||
Godot Android plugin for the Google Play Billing library | ||||||||||
Google Play In App Billing Verification | 70 | 11 years ago | 4 | bsd-3-clause | PHP | |||||
Billing Android | 41 | 2 years ago | mit | Kotlin | ||||||
RxJava wrapper for Android Play Billing Library | ||||||||||
Google Play Billing | 38 | 2 | 11 days ago | 19 | December 08, 2022 | 3 | mit | PHP | ||
Google Play billing |
RxJava wrapper for Android Play Billing Library
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)