在沙盒模式下检查应用内购买自动续订订阅



我的应用程序中自动续订的收据更新有延迟。

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

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

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

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

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

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

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

由于时间段非常小(3分钟(一周,在沙盒模式下进行测试时。我猜它给了我错误的信息。

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

最新更新