A reusable, clean, and modern implementation of Google Play Billing using Kotlin, Dagger Hilt, and coroutines.
Supports one-time purchases (INAPP) and subscriptions (SUBS) with proper handling for purchase states, errors, and acknowledgment.
- β Supports in-app purchases and subscriptions
- β Handles acknowledgment, pending, and already purchased states
- β
Uses
BillingClientwith proper lifecycle handling - β Coroutine-powered product querying
- β
Plug-and-play callback interface (
BillingPurchaseCallback) - β Built with Dagger Hilt for dependency injection
- β Billing Library
- β Dependency Injection (Dagger/Hilt)
- β NO Dependency Injection (Dagger/Hilt) with Util as an Object