OpenIAB - Open In-App Billing

OpenIAB is a unified protocol for in-app purchases on Android and a library that supports in-app purchases from all big stores including Google Play, Amazon Appstore and Samsung Apps as well as multiple smaller stores such as Nokia, Yandex.Store, SlideME, Appland, Aptoide and AppMall. OpenIAB also allows to work with the Fortumo mobile operator billing.

  • It's only ~250KB for all app stores and we work to keep it small.
  • It requires only couple of lines of code to switch.
  • It uses RSA keys to verify purchase receipts, so server-side validation is not necessary.
  • It's based on open protocol. Just compile with OpenIAB once and it will work even with app stores that you didn't know at the time of compiling.
  • View OpenIAB on GitHub Get Involved in OpenIAB

    How OpenIAB Works
    1. An Android app developer integrates the OpenIAB library into his/her Android code.
    2. An Android app developer implements in-app purchases using OpenIAB API (which is very close to Google Play IAB API, meaning only a few changes in the source code are needed).
    3. OpenIAB Lib detects which app store installed the app.
    4. OpenIAB Lib redirects in-app purchase calls to the corresponding app store IAB API (OpenIAB Lib wraps the IAB APIs of several app stores).
    5. All in-app billing logic is handled by the corresponding app store. OpenIAB has no code to process in-app purchases and has no UI: it just wraps in-app billing APIs of different stores in one library.

    No Middleman

    OpenIAB is an open-source library that wraps the already existing IAB APIs as well as an open API that app stores can implement. It is important to understand that all payments are processed directly by each store and there is no middleman between the app developers and the app stores. OpenIAB will not do payments for the app stores. It is just an API enabling the apps to communicate with app stores in order to request in-app billing. It means there is a common open API that all the app stores can use – instead of each new store implementing their own API and developers having to integrate all these different APIs in their apps.

    App stores

    The following Android application stores already support in-app billing:

    We are working on integrating IAB APIs of other app stores into one OpenIAB library.

    Get Involved

    The source code of the OpenIAB library and the samples are available under the terms of the Apache License, Version 2.0:

    The OpenIAB API specification and the related texts are available under the terms of the Creative Commons Attribution 2.5 license: