Google Play In-App Purchase returns error code -1008: null puchaseData or dataSignature

后端 未结 3 1064
情书的邮戳
情书的邮戳 2020-12-13 14:47

I am attempting to implement Google Play in-app purchase v3, after successfully implementing it in v2. However, every single time I attempt to purchase one of my real in-app

3条回答
  •  渐次进展
    2020-12-13 14:54

    I had this problem myself. After a while I found what I did wrong. I was calling the wrong method on the IABHelper.

    If you call mHelper.launchPurchaseFlow(...) with an SKU that is registered as a subscription on Google Developer Console it will result in the error: IAB returned null purchaseData or dataSignature (response -1008:Unknown error).

    If you have a SKU that is registered as an subscription you have to use the method: mHelper.launchSubscriptionPurchaseFlow(...) instead.

    Hope this helps.

提交回复
热议问题