android-inapp-billing-v3
android-inapp-billing-v3 copied to clipboard
Billing Library version 3 or newer.
Reminder: Starting on August 2, 2021, all new apps must use Billing Library version 3 or newer. By November 1, 2021, all updates to existing apps must use Billing Library version 3 or newer. Learn more.
Joining the question! Need release
Joining Please upgrade
Joining Please~~
please upgrade.
Same warning. Pls upgrade library
Joining please.
Please upgrade!
@serggl wake up bro
Please update v3 soon..
following
Me too following
+1
It will be great 👯♀️
Joining the question! Need release
Pls upgrade library
Joining the question! please update
+1
+1
I have made an Android Library to manage Google Play Billing, In App Purchases and Subscriptions with just a few lines of code. Check it out and be sure to star the project if you liked my contribution :)
https://github.com/akshaaatt/Google-IAP
+1
+1
Please update +1
+1
IMO, this library isn't needed anymore. Google Play billing v2 offered a very low-level AIDL, but v3 offers a Kotlin/Java API. The AIDL API required a lot of boilerplate code for handling raw data and making requests. The Kotlin/Java API offered by v3 takes care of that, which is also one of the pain points that this library addressed for v2. Unlike v2, v3 also queries Play Store's cache on querying purchases. A major chunk of this library was dedicated to maintaining this cache.
The v3 library doesn't address verifying purchases. You can copy-paste the Security class for that. Your licenseKey
is the public key for verifying purchases. productId
, purchaseData
and dataSignature
are returned by Purchase#getSku(), Purchase#getOriginalJson() and Purchase#getSignature() respectively.
https://github.com/anjlab/android-inapp-billing-v3/blob/23b702219e7449e99ba94ace21cbe2cdb6eb6e8d/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java#L173-L177
https://github.com/anjlab/android-inapp-billing-v3/blob/23b702219e7449e99ba94ace21cbe2cdb6eb6e8d/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java#L1009-L1024
On a side note, you are now required to either acknowledge or consume all purchases. You also need to handle pending purchases that may transition to the purchased state while the user is away from your app.
After trying to make this project compatible with v3, I gave up and using only the v3 itself, It is not complicate to use, you can follow this sample https://medium.com/@programtown/how-to-make-in-app-purchase-in-android-using-google-play-billing-library-updated-library-3-0-1-72e0b1fd43d5 or more advance sample of Google ClassyTaxiJava https://github.com/android/play-billing-samples/blob/main/ClassyTaxiJava/app/src/main/java/com/sample/android/classytaxijava/billing/BillingClientLifecycle.java , change the BillingClient.SkuType.SUBS to BillingClient.SkuType.INAPP for use with non subscription
Please upgrade
thanks to @dzungpv i was able to update my library to 3.0.1, still testing, will comment after testing.
Android Billing Library v-4+
Source Code :- https://github.com/Mahadev-code/Android-inApp-Billing
Source code also tested on Google Play store
Demo App :- https://play.google.com/store/apps/details?id=com.shiv.shambhu
Bump, Please update
Any idea what to do? It seems that there won't be any update.