Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. libGDX
  3. gdx-pay

gdx-pay

Apache-2.0Javav1.3.13

A cross-platform In-App Purchase API for libGDX games, supporting Android, iOS, and web platforms.

GitHubGitHub
242 stars89 forks0 contributors

What is gdx-pay?

gdx-pay is a cross-platform In-App Purchase API for libGDX, a popular Java game development framework. It provides a unified interface to handle purchases across Android, iOS, and web platforms, abstracting away the differences between payment services like Google Play, Amazon, Huawei, and Apple. This allows game developers to implement monetization features once and deploy their games everywhere without rewriting platform-specific purchase logic.

Target Audience

Game developers using libGDX who need to monetize their games through In-App Purchases on multiple platforms, including Android, iOS, and HTML5.

Value Proposition

Developers choose gdx-pay because it eliminates the need to write and maintain separate purchase implementations for each platform, reducing development time and complexity. Its tight integration with libGDX ensures seamless compatibility, while its abstraction of platform-specific APIs provides a consistent and reliable purchase experience across stores.

Overview

A libGDX cross-platform API for InApp purchasing.

Use Cases

Best For

  • Adding In-App Purchases to libGDX games targeting multiple app stores
  • Implementing cross-platform consumable items like virtual currency or power-ups
  • Selling one-time entitlements such as ad removal or premium content
  • Managing subscriptions in games deployed on Android and iOS
  • Handling purchase restoration when users reinstall games or switch devices
  • Abstracting platform-specific payment APIs to simplify game monetization code

Not Ideal For

  • Games not built with the libGDX framework
  • Projects targeting only a single app store where direct API integration would be simpler
  • Teams requiring advanced platform-specific payment features like detailed refund analytics or custom purchase flows not abstracted by gdx-pay
  • HTML5 games needing server-side purchase validation without client-side JavaScript constraints

Pros & Cons

Pros

Unified Cross-Platform API

Abstracts multiple payment services (Google Play, Amazon, Huawei, Apple) into a single PurchaseManager interface, reducing code duplication across platforms as detailed in the supported services list.

Flexible Offer System

Supports consumables, entitlements, and subscriptions through configurable Offer objects, demonstrated in the usage section with addOffer() calls for different types.

Integrated Purchase Restoration

Provides purchaseRestore() methods with PurchaseObserver callbacks for handling transaction recovery, though the README notes iOS restrictions and offline limitations.

libGDX Ecosystem Compatibility

Seamlessly integrates with libGDX via Gradle/Maven dependencies and project structures, ensuring smooth adoption for existing libGDX developers.

Cons

Service-Specific Setup Complexity

Each payment service requires separate configuration and documentation, adding overhead as developers must refer to subproject readmes for platform-specific details.

Limited Platform Support

Only covers listed services (Google Play, Amazon, Huawei, Apple); new or niche platforms may lack support, forcing custom implementations.

iOS Restoration Restrictions

The README warns that Apple may reject apps if purchaseRestore() is called without user interaction, limiting automatic restoration flows and requiring careful handling.

Frequently Asked Questions

Quick Stats

Stars242
Forks89
Contributors0
Open Issues7
Last commit28 days ago
CreatedSince 2014

Tags

#mobile-games#ios#monetization#android#java#game-development#iap#in-app-purchase#cross-platform#payment-api#in-app-purchases#libgdx

Built With

M
Maven
A
Android Studio
l
libGDX
G
Gradle

Included in

libGDX1.2k
Auto-fetched 5 hours ago

Related Projects

steamworks4jsteamworks4j

A thin Java wrapper to access the Steamworks API

Stars544
Forks87
Last commit2 months ago
gdx-gamesvcsgdx-gamesvcs

Easy integration of gameservices in your libGDX game: Google Play Games, Apple Game Center, Amazon GameCircle and more

Stars116
Forks21
Last commit1 year ago
gdx-fireappgdx-fireapp

libGDX Firebase API

Stars67
Forks20
Last commit2 years ago
gdx-facebookgdx-facebook

libGDX extension providing cross-platform support for Facebook Graph API.

Stars58
Forks20
Last commit7 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub