测试IAP /应用程序内购买订阅与谷歌播放/ Android的应用程序、测试、IAP、Android

2023-09-05 07:33:54 作者:夜笙&歌婉转

我在执行几款Android应用程序能够在谷歌推出的游戏,它们都必须使用谷歌IAP自动更新的订阅产品类型的订阅。

I am implementing several Android applications to be launched on Google Play and they all have subscriptions using the Google IAP auto-renewing subscription product type.

要测试的应用程序,我也做了以下内容:

To test the app I have done the following:

上传二进制数到谷歌草案播放,但没有公布它。

uploaded a draft binary to Google Play but not published it.

创建并发布在开发者控制台认购产品。

created and published the Subscription product in the developer console.

补充我的谷歌帐户的开发者控制台测试帐户列表

Added my Google account to the list of test accounts in the developer console

从日食导出我的APK(具有相同的包名称和版本名称/ code作为一个上传到谷歌播放)

Exported my APK from eclipse (with the same package name and version name/code as the one uploaded to Google Play)

安装了这个出口APK我这是记录与测试帐号测试设备上。

Installed this exported APK on my test device which is logged in with the test account.

我现在能够成功地测试我的购买和每一件事情的作品。但是,据我所看到的,此次收购是真实和认购实际上是有效的整整一个月。

I am now able to successfully test my purchase and every thing works. However, as far as I can see, this purchase is real and the subscription is actually valid for an entire month.

请问有没有办法做任何形式的沙盒测试,或者至少一种方式prematurely取消订阅?

Is there no way to do any kind of "sandbox" testing or at least a way to prematurely cancel this subscription?

如何测试在我的订阅已到期的情况下,无需等待一个月?!

How can I test the scenario where my subscription has expired without having to wait a month?!

pciated任何帮助非常AP $ P $

Any help much appreciated

推荐答案

不为订阅。新(V3)的应用内计费API已经被释放,但目前不支持订阅。如果是的话,它可能会带来一个更简单的方法来测试(似乎不太可能,虽然)。你只需要取消订阅/购买的商家控制台,当你完成测试。

Not for subscriptions. The new (v3) in-app billing API has been released, but it currently does not support subscriptions. When it does, it might bring an easier way to test (seems unlikely though). You just have to cancel subscriptions/purchases in the merchant console when you are done testing.