Skip to content
Benjamin Schulte edited this page Nov 27, 2018 · 11 revisions

Welcome to gdx-pay - the libgdx in-app-purchasing API

To get started, see the Usage chapter at the bottom of the opening page.

Please feel free to add your best-practices for integrating gdx-pay in libgdx-projects.


Short glossary of classes

  • PurchaseManager: interface to interact with the IAP store

  • PurchaseObserver: is the listener that reacts to purchases and purchase restores

  • PurchaseManagerConfig: configures the purchaseManager with products (offers) and store-parameters

    • List: the IAP products of your app
    • Map<String, Object> storeParams: for storeName, storeKeys, etc. (optional)
  • Offer: defines a single IAP product

    • OfferType
    • String identifier
  • OfferType

    • CONSUMABLE: can be purchased multiple times and diminishes once used
    • ENTITLEMENT: can only be purchased once (e.g. one time upgrade)
    • SUBSCRIPTION: entitlements that are bound by a period of time. Renew automatically at the end of the time period
  • Transaction: is what you get back into the purchaseObserver when a purchase has happened or purchases have been restored

  • Information: additional information about the products your app offers returned by the app store (local pricing, local description etc)