Skip to content

Instantly share code, notes, and snippets.

@LethalMaus
Created March 11, 2024 21:40
Show Gist options
  • Select an option

  • Save LethalMaus/3aee8ca7c727ac833d91b4dd45539be7 to your computer and use it in GitHub Desktop.

Select an option

Save LethalMaus/3aee8ca7c727ac833d91b4dd45539be7 to your computer and use it in GitHub Desktop.
monetization.kt
private val purchasesUpdatedListener =
PurchasesUpdatedListener { billingResult, purchases ->
// To be implemented in a later section.
}
private var billingClient = BillingClient.newBuilder(context)
.setListener(purchasesUpdatedListener)
.enablePendingPurchases()
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment