Skip to content

Instantly share code, notes, and snippets.

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

  • Save LethalMaus/46746218dfb3af16330b42029857ed85 to your computer and use it in GitHub Desktop.

Select an option

Save LethalMaus/46746218dfb3af16330b42029857ed85 to your computer and use it in GitHub Desktop.
monetization.kt
val queryProductDetailsParams =
QueryProductDetailsParams.newBuilder()
.setProductList(
ImmutableList.of(
Product.newBuilder()
.setProductId("product_id_example")
.setProductType(ProductType.SUBS)
.build()))
.build()
billingClient.queryProductDetailsAsync(queryProductDetailsParams) {
billingResult,
productDetailsList ->
// check billingResult
// process returned productDetailsList
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment