我想在应用程序内购买Google Play订阅。说到实现,它告诉我们“找不到您试图购买的商品”响应代码为0,没有调试消息。你能告诉我还需要添加哪些参数吗?
鉴于计费客户端已准备就绪,并且已成功获取订阅详细信息
val skuDetails = subscriptionList.filter { it.sku == sku }.first()
println("selected skuDetails : $skuDetails ")
val flowParams = BillingFlowParams.newBuilder()
.setSkuDetails(skuDetails)
.setDeveloperId(licenseKey)
.build()
val result = billingClient. launchBillingFlow(this , flowParams)
println("billing result response : $result ")
println("billing result response : ${result.debugMessage} ")
println("billing result response : ${result.responseCode}")