Android的计费v3的 - 没有签名 [英] Android billing v3 - no signature

查看:134
本文介绍了Android的计费v3的 - 没有签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要什么? 检索所有购买的物品后,我需要核实购买我的服务器上,这个我想要做的签名和签署的在应用程序的支付接收的数据。

What I want? After retrieving all purchased items I need to verify the purchase on my server, this I want to do with the signature and signed data received from the in-app payment.

首先,我使用了应用内结算V2那里我得到我的开发人员每次都占一个正确的签名和signdata用于静力试验的SKU android.test.purchased

First I used the in-app billing v2 there I got every time with my developer account a correct signature and signdata for the static test sku android.test.purchased.

我切换到新的计费V3,因为它看起来非常漂亮的实现,但我没有得到任何的签名了。

I switched to the new billing v3 because it seems very nice to implement, however I get no signature any more.

我已经上传我的APK的previous版本的谷歌(没有公布过,因为它尚未完成),我也加入了活跃在应用程序内的产品进行进一步testings。

I have uploaded a previous version of my APK to Google (don't published ever because it is not finished yet), also I added a active in-app product for further testings.

在APK的上传是昨天晚上10点,所以我想我也有等了。

The upload of the APK was yesterday 10:00 pm so I think also I have waited enough.

我试过吗? 我曾在不同版本的安装我的应用程序:

What I tried? I have installed my application in different version:

  • 在未签名的apk我的自我补充活动应用内商品=>没有签名
  • 在未签名的apk的SKU android.test.purchased =>没有签名
  • 签署APK与我自己添加了主动应用内商品=>没有签名
  • 签署的apk的SKU android.test.purchased =>没有签名
  • unsigned apk with my self added "active" in-app product => no signature
  • unsigned apk with the sku android.test.purchased => no signature
  • signed apk with my self added "active" in-app product => no signature
  • signed apk with the sku android.test.purchased => no signature

这4个程序规定我想我的两个开发人员的电话(在我的主要谷歌帐户是相同的用户开发者控制台帐户),并与设置一个测试账号另一部手机,测试账号也放在我的账户在测试账号。

Those 4 "app states" I tried both my developer phone (where my primary Google account is the same user as the developer console account) and with a test account on setup another phone, the test account is also placed in my account settings under "test accounts".

嗯,现在我没有更多的想法我是如何得到我的签名。 我想我会用积极的应用程序+主动应用内商品的签名,因为支付过程的工作原理(即我购买了Android.test.purchased的亚行logcat显示器) 我的自我创建应用内商品我也不能因为测试,如果我用我的开发者账户,Play商店告诉我可以不买,已经拥有和我的测试账号我得到一个错误本产品不适用于您账号。

Hmm and now I have no more ideas how I get my signature. I think I will get the signature with an active app + active in-app product because the payment process works (The adb logcat displays that I purchased the "Android.test.purchased") My self created in-app product I could also not test because if I use my developer account, the play store tells me "can not buy, already owned" and with my test account I got an error "This product is not available for your account".

你有一个解决方案,我的问题?

Do you have a solution for my problem?

推荐答案

我发现V3的测试产品不返回任何签名的数据,但如果你与你的释放钥匙签署您的应用程序并完成实际的购买流程你做的产品得到签名的数据。

I found with V3 that the test products do not return any signed data, but if you sign your app with your release key and complete the purchase flow of your actual products that you do get signed data.

这篇关于Android的计费v3的 - 没有签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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