Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: In app billing, using library or not? [closed]

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?

like image 577
Jonno Avatar asked Feb 08 '12 19:02

Jonno


People also ask

What is Google billing library?

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.

How do I validate in-app purchases on Android?

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.

How do I check my Google Play Billing Library?

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.


2 Answers

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!

like image 69
Bill The Ape Avatar answered Oct 24 '22 20:10

Bill The Ape


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.

like image 36
hpique Avatar answered Oct 24 '22 21:10

hpique