setDebugMode

open fun setDebugMode(debugMode: Boolean)

Enables debug behaviour: registers the legacy test product in initBilling and shows the dev purchase bottom sheet instead of the real billing flow. A library AAR is always compiled with BuildConfig.DEBUG = false, so the host app must inject its own build state, e.g. setDebugMode(BuildConfig.DEBUG) before initBilling.

Parameters

debugMode

true to enable debug behaviour.