android – 在测试购买的情况下,为什么Google应用内结算会返回正确的orderId?

Google表示如果购买是测试购买,您将收到空订单ID.但是我们得到了正确的orderId,所以问题是如何检查购买是否是测试购买.为什么要获得orderId?

解决方法

我猜您正在检查json响应,而不是包含订单号的电子邮件中的Google Play订单收据.

如果是测试购买,则JSON响应不应包含orderId.已经确认了几次.确保您用于测试购买的帐户包含在Google Play开发者控制台>中的许可测试帐户中.应用设置>帐户详细信息,然后在“许可证测试”部分.

检查here

When your in-app Billing implementation is ready,you can test
purchasing of your in-app SKUs in two ways:

Test purchases,which let your selected license-test users purchase
your in-app products without any resulting charges to the user. Test
purchases can be used in alpha/beta releases only.

Real purchases,which let regular users make real purchases of your in-app products with actual charges to the user’s payment instruments.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...