我试图承认我在android上购买的东西,但每次我都会收到响应代码3,上面写着'Google In-app计费API版本小于9‘。购买达到这一功能与所需的所有细节,象征性,等等,但仍然,它不起作用。
我正在应用程序中使用最新版本的IAB库:
private fun acknowledgeNonConsumablePurchasesAsync(nonConsumables: List<Purchase>) {
nonConsumables.forEach { purchase ->
val params = AcknowledgePurchaseParams.newBuilder().setPurchaseToken(purchase
.purchaseToken).build()
playStoreBillingClient.acknowledgePurchase(params) { billingResult ->
when (billingResult.responseCode) {
BillingClient.BillingResponseCode.OK -> {
disburseNonConsumableEntitlement(purchase)
}
else -> Log.d(LOG_TAG, "acknowledgeNonConsumablePurchasesAsync response is ${billingResult.debugMessage}")
}
}
}
}发布于 2019-07-17 15:54:09
https://stackoverflow.com/questions/57075463
复制相似问题