A cross-platform In-App Purchase API for libGDX games, supporting Android, iOS, and web platforms.
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.
Game developers using libGDX who need to monetize their games through In-App Purchases on multiple platforms, including Android, iOS, and HTML5.
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.
A libGDX cross-platform API for InApp purchasing.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
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.
Supports consumables, entitlements, and subscriptions through configurable Offer objects, demonstrated in the usage section with addOffer() calls for different types.
Provides purchaseRestore() methods with PurchaseObserver callbacks for handling transaction recovery, though the README notes iOS restrictions and offline limitations.
Seamlessly integrates with libGDX via Gradle/Maven dependencies and project structures, ensuring smooth adoption for existing libGDX developers.
Each payment service requires separate configuration and documentation, adding overhead as developers must refer to subproject readmes for platform-specific details.
Only covers listed services (Google Play, Amazon, Huawei, Apple); new or niche platforms may lack support, forcing custom implementations.
The README warns that Apple may reject apps if purchaseRestore() is called without user interaction, limiting automatic restoration flows and requiring careful handling.