从谷歌游戏产品无效错误 [英] Invalid Product error from Google Play

查看:122
本文介绍了从谷歌游戏产品无效错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让 https://github.com/j3k0/cordova-plugin-购买为科尔多瓦/ PhoneGap的工作,我得到一个无效的错误,当我尝试获取产品信息。

I'm attempting to get https://github.com/j3k0/cordova-plugin-purchase working for Cordova/PhoneGap and I'm getting an "Invalid" error when I try to retrieve the product info.

我不知道我做错了,但这里是我做了什么:

I don't know what I'm doing wrong, but here is what I have done:


  • 插件安装在平台上正确的计费API密钥的Andr​​oid \\ \\资源\\值\\ billing_key.xml

  • 的store.ready()事件不火没有错误,所以我知道我至少连接。

  • 我上传一个签名Beta版APK并公布它。

  • 我创建了一个应用程序内购买,并确认它是有效的。

  • 我确认我被硬编码ID调用code范围内的正确产品ID。

  • 我从 store.when回调(产品)。更新(fnProcessProduct),但product.state总是store.INVALID

  • The plug-in is installed with the proper billing API key in platforms\android\res\values\billing_key.xml
  • The store.ready() event does fire without errors, so I know I'm at least connecting.
  • I've uploaded a signed APK to Beta and published it.
  • I created an in-app purchase and confirmed it is active.
  • I confirmed I'm calling the right product ID within the code by hard-coding the ID.
  • I get callbacks from store.when("product").updated(fnProcessProduct), but the product.state is always store.INVALID

有我丢失的东西,无论是谷歌游戏内的PhoneGap,部署或插件?

Is there something I'm missing, either within Google Play, PhoneGap, deploying, or the plug-in?

推荐答案

得到了答案 - 一旦你上传的​​APK到谷歌扮演β和激活您的IAP产品,必须使用测试使用相同的密钥签名的apk。我是用离子和离子用调试密钥进行签名。

Got the answer - once you upload an APK to Google Play as beta and activate your IAP product, you must test using APKs signed with the same key. I was using Ionic, and Ionic was signing with a debug key.

更多信息: https://github.com/j3k0/cordova-plugin -purchase /问题/ 75

这篇关于从谷歌游戏产品无效错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆