Home > Software design >  Google in app purchase version 5 purchase verification issue
Google in app purchase version 5 purchase verification issue

Time:10-07

I'm unable to verify the purchase or particular item after being purchased from the google play billing version.

Is there any way to get the verification of the item purchase from email, or from the token after the item is purchased?

hope this exists in google play, if not than what we can do?

Note: I'm using version 5.0.0

CodePudding user response:

After you have purchased using google play billing library, you will get the purchase token in PurchasesUpdateListener .

After this you can acknowledge your purchases using AcknowledgePurchaseParams. You have to set the purchase token in this.

val acknowledgePurchaseParams = AcknowledgePurchaseParams.newBuilder()
                        .setPurchaseToken(purchase.purchaseToken)
val ackPurchaseResult =
                     billingClient.acknowledgePurchase(acknowledgePurchaseParams.build())

For more info refer this link

  • Related