Created
March 11, 2024 21:42
-
-
Save LethalMaus/46746218dfb3af16330b42029857ed85 to your computer and use it in GitHub Desktop.
monetization.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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