Successfully modified file: /home/Messier82/projects/service-book/app/src/main/java/com/servicebook/data/billing/BillingManagerImpl.kt (1 replacements). Here is the updated code: ... coroutineScope.launch { queryPurchases() } } // USER_CANCELED and other non-success responses are handled gracefully by doing nothing, // but we clear the pending state as the purchase flow is no longer active. else -> { billingDerivedPending.value = false } } } private val billingClient: BillingClient = billingClientProvider.provide(purchasesUpdatedListener) ...