libgdx/libgdx — pull request #97 by noblemaster (2012-10-30 10:26:00+00:00)
Title: low-level IAP Interfaces

After spending a few days researching the various IAP services (GooglePlay, iOS, Amazon, Intel AppUp, Apple Mac Store), here is my proposal for addition of a platform-independent IAP system to libgdx. Not sure where it would be added if accepted - maybe Gdx.net?

Please have a look at the PurchaseManager javadoc: I added some examples how to (1) setup the system, (2) make purchases and (3) restore purchase. That's basically all that there is to it. It is very simplistic but it will allow to support IAP on all platforms.

To make it platform-independent, there is no support for downloadable content/listing of items/icons/prices etc. It might be a good idea to create some services/wrappers around the basic interfaces I provided in the long run (e.g. someone could setup a server) that would take care of all that.

Please provide feedback - I am happy to revise.