- Code: Select all
requestPurchase("com.example.item")
That's how simple it should be to use Android In-app Billing.
And with this library it is.
(or should be; this is a very early release)
Android Billing Library is an open-source library that implements in-app billing's full specification and offers high-level classes to use it. Additionally, billing transactions are stored in a local obfuscated database which can be easily queried.
Basic in-app billing features can be used with calls as simple as:
- Code: Select all
public void checkBillingSupported();
public void requestPurchase(String itemId);
public void restoreTransactions();
This is our first open-source contribution to the Android community (not counting the "Download for Android" badge and the Android shortcode for WordPress). Feedback will be more than welcome.
Hope you find it useful!

