简体   繁体   English

无论如何测试谷歌应用内计费的订阅项目而不使他们的 state 在谷歌游戏控制台中处于活动状态?

[英]Is there anyway to test subscription items of google in-app billing without making their state active in google play console?

I have a problem with testing subscription items in my app.我在我的应用程序中测试订阅项目时遇到问题。 Regarding the In-App billing documents that I read and stack-overflow posts, as far as I understood, for testing Subscription Items in In-app billing we have two options:关于我阅读的应用内计费文档和堆栈溢出帖子,据我所知,为了测试应用内计费中的订阅项目,我们有两种选择:

  1. Solo testing (Which is not possible for subscription items).单独测试(订阅项目无法进行)。 So this Item is not possible for us.所以这个项目对我们来说是不可能的。

    Google docs: Note: Static responses cannot be used to test subscriptions.谷歌文档: Note: Static responses cannot be used to test subscriptions.

  2. The product Id which is trying to purchase should be active in Google play console.尝试购买的产品 ID 应该在 Google Play 控制台中处于活动状态。 Since we can not make them active because production users will see those items, we need to find another way.由于生产用户会看到这些项目,因此我们无法使它们处于活动状态,因此我们需要找到另一种方法。

    Google docs: To be available for purchase, a product needs to be active, and its app needs to be published. Google 文档: To be available for purchase, a product needs to be active, and its app needs to be published.

Questions:问题:

  1. Is there any way to test subscription items without making them active in Google play console?有什么方法可以在不让它们在 Google Play 控制台中激活的情况下测试订阅项目?
  2. Is there any sandbox mode just like apple in-app purchase or Amazon in-app purchase?有没有像苹果内购或者亚马逊内购一样的沙盒模式?

If a subscription item is 'active' in the play console, users wouldn't be able to see it unless your app specifically queries for the sku (the product ID that was set in the Play Console).如果订阅项目在 Play 控制台中处于“活动状态”,除非您的应用专门查询 sku(在 Play 控制台中设置的产品 ID),否则用户将无法看到它。

For example, in the official play billing sample app , we store all the skus that are defined in the play console and only query for the skus we have defined in the app code.例如,在官方play billing 示例应用中,我们存储了 play 控制台中定义的所有sku ,并且只查询我们在应用代码中定义的 sku。 This means that we can add additional in-app products in the play console without production users seeing it as long as the code that queries for the products isn't shipped to production as well.这意味着我们可以在 Play 控制台中添加额外的应用内产品,而生产用户不会看到它,只要查询产品的代码也没有交付到生产环境中。

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

相关问题 将APK的草稿上传到Google Play中以测试应用内结算 - Uploading draft of APK into Google Play to test In-App Billing 应用内计费确认购买问题[使用谷歌播放应用内计费库] - In-app billing acknowledgePurchase issue [using google play in-app billing library] Google Play应用内结算onPurchasesUpdated()错误响应代码-1 - Google Play in-app Billing onPurchasesUpdated() error response code -1 谷歌游戏控制台。 您的应用还没有任何应用内商品 - Google Play Console. Your app doesn't have any in-app products yet Google为多种产品播放In App Billing Services - Google play In App Billing Services for multiple products Android应用内结算处理Google Server响应代码 - Android in-app billing handling google Server Response Codes SDK Mananger中未显示Google应用内结算库 - Google in-app billing library isn't showing in SDK Mananger 您如何检测用户现有订阅的价格是否发生了变化(Google Play 应用内购买)? - How do you detect if a user's existing subscription's price has changed (Google Play in-app purchase)? 如果订阅购买成功,Google 在应用计费 v3 视图中 - Google in app billing v3 view if subscription purchase was a success Google App Engine Analog,无需订阅费 - Google App Engine Analog without subscription fee
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM