I have just created the Android in-app billing example from the docs, and its all working well. When it comes to implementing the examples code into my own application it all seems very complicated / scary. I'm unsure whether to go ahead with it without fully understanding how it works. Has anyone used this library? Android in-app billing library
How reliable and stable is that code? Anyone encountered any problems?
Google Play's billing system is a service that enables you to sell digital products and content in your Android app. You can use Google Play's billing system to sell a one-time product or subscriptions on a recurring basis.
When a user makes an in-app purchase, cache the details (token, order id, and product id) locally on the client (i.e the app) then send it to your API. Your API should then send the purchaseToken to the Google Play Developer API for validation.
To test your Google Play Billing Library integration using test tracks, do the following: Publish your app to a test track. Note that after you publish an app to a testing track, it can take a few hours for the app to be available for testers. Ensure each tester opts-in to your app's test.
Yes, this library is being used and yes, you are right about it being scary. Look at this SO answer to see how others are tackling this challenge.
Also, there is another, simpler, tutorial example code. Take a look at this tutorial.
Good luck!
I wrote the library.
Has anyone used this library?
Yes, many people do. That is a good thing because it reduces the likelihood of major bugs. And a bad thing because it makes your app more vulnerable to bypass billing.
How reliable and stable is that code?
Check it out yourself. If you don't understand the code, you shouldn't be using it anyway.
In any case, using the library as a starting point should be better than starting from scratch.
Anyone encountered any problems?
Check out the issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With