代码之家  ›  专栏  ›  技术社区  ›  Jeff Bootsholz

没有为Android应用内订阅提供调试消息和响应代码。我还需要配置什么?

  •  0
  • Jeff Bootsholz  · 技术社区  · 7 年前

    我想在应用程序内购买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}")
    
    0 回复  |  直到 7 年前
    推荐文章