在Google play计费库中,同一条购买记录,getPurchaseState()的返回值为1,而purchaseState的返回值为0,这出乎意料。

问题描述 投票:0回答:1

我有一个退款的非消费承认购买,使用谷歌播放计费2.1.0。

Purchase.PurchasesResult purchasesResult = billingClient.queryPurchases(BillingClient.SkuType.INAPP);

for(purchase in purchasesResult)

purchase.getPurchaseState() 退货1

不过 purchase.toString() purchaseState 回0

我用的是 Purchase.PurchaseState.PURCHASED 检查状态,但它返回1

不知道真正的PURCHASED状态或退款状态的号码是多少?

android google-play in-app-purchase in-app-billing
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.