ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Android In App Billing …为什么有矛盾的信息?

2019-06-25 02:10:23  阅读:276  来源: 互联网

标签:android in-app-purchase in-app-billing billing android-billing


我和其他许多人一样,只是在验证静态响应是否有效后,尝试测试我的应用内购买.但是当我阅读文档,帖子和答案时,似乎没有任何结果.我变得非常沮丧.

我的最终目标是找出我是否可以在不收费的情况下进行测试.

这个文件说我可以 – link

Once authorized with testing access, those users can side-load your app and test the full merchandising, purchase, and fulfillment flow for your products. Test purchases are real orders and Google Play processes them in the same way as other orders. When purchases are complete, Google Play prevents the orders from going to financial processing, ensuring that there are no actual charges to user accounts, and automatically canceling the completed orders after 14 days.

和相同的链接

During a test purchase, users can test the actual merchandising, purchase, and fulfillment flow in your app. During purchase, the inapp item is displayed as a normal item with an actual price. However, Google Play marks test purchases with a notice across the center of the purchase dialog, for easy identification

但是在这个页面上,它说 – link

Login to the test device by using a tester account. Test your In-app Billing application by purchasing a few items, and fix any issues that you encounter. Remember to refund the purchases if you don’t want your testers to be actually charged!

WTF ……所有人都知道吗?可以不收费进行测试吗?如果是这样,怎么样?

解决方法:

如果您使用In App Billing版本3,则可以使用product id =“android.test.purchased”.它是虚拟产品,您不应该在开发人员控制台中添加它.你可以不收取任何费用购买该产品.

android.test.purchased

当您使用此产品ID制作应用内结算请求时,Google Play会像您成功购买商品一样进行回复.响应包括JSON字符串,其中包含虚假购买信息(例如,虚假订单ID).在某些情况下,JSON字符串已签名,响应中包含签名,因此您可以使用这些响应测试签名验证实现.

希望它会对你有所帮助.

标签:android,in-app-purchase,in-app-billing,billing,android-billing
来源: https://codeday.me/bug/20190625/1283740.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有