- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我购买了三个不同期限的不同订阅。我已经配置了测试账户,我可以进行测试购买。对于这些购买,谷歌不向我收费,但它们看起来非常像真实的。购买成功后,应用内结算会向我发送一些有关我的购买的数据,例如 packageName
、productId
、orderId
、purchaseToken
等等。
在我的处理代码中,我需要以某种方式知道此次购买是否真实。简而言之:我真的为此赚钱了吗?或者这次购买是由某个测试帐户进行的,而我却一无所获?我需要这种信息来进行采购会计。
所以问题是:如何在代码中区分真实订阅购买和测试订阅购买?
谢谢。
附言我正在使用 Xamarin 和 C# 进行开发。
最佳答案
如果您的帐户未添加到您的 Google Play 开发者帐户的许可帐户列表中,您可以在 alpha/beta 版本上进行真正的购买。
检查 this :
With alpha/beta test groups, real users (chosen by you) can install your app from Google Play and test your in-app products. They can make real purchases that result in actual charges to their accounts, using any of their normal payment methods in Google Play to make purchases. Note that if you include test license accounts in your alpha and beta distribution groups, those users will only be able to make test purchases.
更新
要知道哪个购买是真实的,哪个是测试的,请在响应中检查 orderId。不会为测试购买分配 orderId。
关于xamarin - 识别测试 GooglePlay 购买,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33904744/
我创建了一个简单的应用程序,我刚刚上传了我的 apk。我注意到大约有 100 个设备不受支持。 我的 list 没有请求任何许可。关于导致此问题的原因或如何解决此问题的任何想法?
我购买了三个不同期限的不同订阅。我已经配置了测试账户,我可以进行测试购买。对于这些购买,谷歌不向我收费,但它们看起来非常像真实的。购买成功后,应用内结算会向我发送一些有关我的购买的数据,例如 pack
我正在使用 Js、HTML、CSS 和 Cordova 制作一款跨平台手机游戏。 首先,我想为 Android 编译它并将其放在 GooglePlay 市场上。问题是我找不到有关如何存储游戏数据的信息
我想在我的 Android 应用程序中有一个“评价应用程序”按钮,它直接链接到我应用程序的谷歌播放页面的评级部分。 我知道如何通过单击按钮打开我的应用程序的 google play 页面。 有没有办法
我正在尝试在我的应用程序中包含广告,我已经创建了 AdMob 帐户,并按照教程进行操作(下载了 API,将 google-play-services/libraries/google-play-ser
当我查看我的 Google Play 开发者控制台时,该应用程序显示为与设备 Nexus 7 兼容。 我没有任何 在我的 Android list 中会改变设备,不兼容。 问题是我在应用商店中找不到该
关于访问 googleplay payout reports api, 下载月度支出报告,谷歌提供 api https://developers.google.com/checkout/develop
我按照插件页面上的插件教程中描述的方式将 gerrit 与 Google Play Android Publisher Plugin 一起使用。.apk 已签名,如果我通过 google play g
我正要将 google plus 集成到我的第一个 android 项目中,但是一旦我在执行 developer.google.com 网站中提到的所有步骤后将 google_play_service
我用Unity3d做一个游戏。我想在游戏中制作一个按钮,玩家可以点击这个按钮链接GooglePlay并对我的游戏进行评分。我需要什么插件以及如何做到这一点?我刚发现这个:link 最佳答案 点击按钮调
我找到这个脚本来测试收到的 Google 广告系列参数: adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.a
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
这是我第一次为我的 Android 应用实现插页式广告。我在集成方面遇到了问题,我已经按照官方的 Google 移动广告 SDK 教程进行操作,但我仍然不明白的是如何为初始版本做准备?我只是想设置广告
使用 Lollipop,我有一个 device-owner 应用程序,它在提供时与 NFC 一起安装。 我现在需要的是处理我的应用程序的自动更新,从 Google Play 到依赖标准的 Androi
我在测试输入中添加了一个 gmail 帐户(在开发者控制台中),我在我的设备上添加了我的 apk,然后我在 GooglePlay 应用程序中更改了帐户。但我总是得到同样的错误:“购买者无法购买此商品”
遗憾的是在我的国家 GoogleCheckout 不可用。我想制作一个付费应用程序,我已经开始了,但它不是很好,我无法将它作为付费应用程序上传到 GooglePlay,只能免费使用。 有没有办法或解决
好吧,我正在开发并计划发布的应用程序遇到了这个问题,但该问题仅发生在 Android SDK 的一个版本(版本 4.1.1 API 16)上。 我可以限制仅 Android 版本 4.1.1 API
我刚刚完成编码并尝试上传到 Google Play。其实上传和编码一样难:)所以,我不得不学习一些关于SDK和架构师的知识。我想出了如何修复和使用它们。但最后,当我尝试在 GooglePlay 上上传
在过去 3 天里,我一直在尝试将 Google Game Services 添加到我的 LibGDX 项目中,起初我尝试了 LibGDX 教程,但它们似乎都已过时。然后我被建议使用谷歌游戏服务官方代码
我在 Google Play 中有一个游戏。在前 3 次更新中,它一直运行良好。但在您下载并安装更新后的第 4 次游戏仅在 Android 4.1.1 设备中崩溃。 发生这种情况是因为 GoogleP
我是一名优秀的程序员,十分优秀!