【问题标题】:Check In-app purchase auto renewal subscription in sandbox mode在沙盒模式下检查应用内购买自动续订订阅
【发布时间】:2017-11-26 17:06:17
【问题描述】:

我的应用中的自动续订收据更新出现延迟。

例如,如果用户订阅了 7 天的订阅和 1 周的免费试用,

  • 表示 1 周 = 3 分钟
  • 自动续订 5 次。
  • 总时间 = 15 分钟。

所以根据上面的信息,在前 15 分钟内我应该有一个活跃的订阅。但有时它不会返回有效订阅。

我发现的问题是,即使在前 3 分钟后,收据也没有更新,所以当我将到期日期与订阅期到期时返回的当前时间进行比较时。

这在沙盒模式中很常见还是我做错了什么?

【问题讨论】:

  • 有时沙盒会模拟用户取消续订

标签: ios objective-c subscription auto-renewable


【解决方案1】:
Testing Auto-Renewable Subscriptions

When testing auto-renewable subscriptions in the test environment, keep in mind that the duration times are compressed. Additionally, test subscriptions only auto-renew a maximum of six times. Table 3-1 lists the compressed duration times.

Table 3-1  Subscription durations for testing
Actual duration
Test duration
1 week    3 minutes
1 month   5 minutes
2 months 10 minutes
3 months 15 minutes
6 months 30 minutes
1 year    1 hour

参考这个网址: https://help.apple.com/app-store-connect/#/dev7e89e149d

【讨论】:

    【解决方案2】:

    我是如何解决这个问题的。最初在我的设备中,我没有自动设置我的时间。有些我设置的时间比实际时间多 5 分钟。因此,在验证过期日期时,它始终显示为过期订阅。

    在沙盒模式下测试时,一周的时间非常短(3 分钟)。我猜它给了我错误的信息。

    希望这会有所帮助。谢谢。

    【讨论】:

      猜你喜欢
      • 2017-10-29
      • 1970-01-01
      • 2018-06-01
      • 2016-01-25
      • 2016-10-23
      • 2014-02-20
      • 2013-05-20
      • 2011-06-29
      • 2018-02-17
      相关资源
      最近更新 更多