简体   繁体   English

如何在应用购买中测试 Google Play?

[英]How to test Google Play in app purchase?

From what I understand reading This link .据我了解阅读此链接 It appears to me that the only way to test in app purchase is to write the complete code for in app purchase.在我看来,测试应用内购买的唯一方法是编写应用内购买的完整代码。 And then do a proper build.然后进行适当的构建。 Upload it to beta release.将其上传到测试版。 And then download the app via the opt in link.然后通过选择加入链接下载应用程序。

But how do I develop it in the first place?但我首先如何开发它? Am I expected to write some lines of code and then do a build and upload it?我是否需要编写一些代码行,然后进行构建并上传? That is a huge turn around time.这是一个巨大的转变时间。 Is there no way for me to have some test account that I can sign in go google play (on phone) with and then just make purchases?有没有办法让我拥有一些测试帐户,我可以使用它登录谷歌游戏(在电话上)然后进行购买?

Currently, my code already handles the products目前,我的代码已经处理了产品

android.test.purchased and android.test.canceled . android.test.purchasedandroid.test.canceled How do I make it so that I can test my own products Ids?我如何制作它以便我可以测试我自己的产品 ID? Currently it just says the product you are requesting is not available.目前它只是说您请求的产品不可用。

Google allowed to test your in app purchase in for dummy products like you mentioned android.test.purchased.谷歌允许测试你在应用程序内购买的虚拟产品,比如你提到的 android.test.purchased。 To test real products you must have to deploy application in beta release at least.要测试真正的产品,您必须至少在 beta 版本中部署应用程序。 Following article will help you in detail :以下文章将详细帮助您:

An Android Studio Google Play In-app Billing Tutorial Android Studio Google Play 应用内结算教程

Hope it will help.希望它会有所帮助。

You need to publish your application in beta version in play store to review the application.您需要在 Play 商店中以测试版发布您的应用程序以查看该应用程序。 Without reviewing your application, you cannot test app purchases.不审查您的应用程序,您就无法测试应用程序购买。 After the review you can test your application without redeploying it to play store.在审查之后,您可以测试您的应用程序,而无需将其重新部署到 Play 商店。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM