gpt4 book ai didi

iphone - 如何在iOS App Store Sandbox中测试自动续订订阅的 "renew"组件?

转载 作者:IT王子 更新时间:2023-10-29 07:57:07 26 4
gpt4 key购买 nike

各位,

我正在尝试验证自动续订订阅是否确实在沙盒环境中续订。首先,沙盒中的自动续订订阅似乎只有 5 分钟有效。说得通。我希望如果我等五分钟,然后再调用

https://sandbox.itunes.apple.com/verifyReceipt

根据我的收据数据,我应该会看到订阅续订,到期日期再过五分钟。

不幸的是,情况并非如此。我所看到的只是带有 latest_expired_receipt_info 和状态 21006 的响应,根据 the Apple docs 这意味着“此收据有效但订阅已过期” .

谁能告诉我他们是否能够端到端地测试自动续订订阅,包括这个续订组件?或者我是否必须启动此应用程序并祈祷产品能够像宣传的那样工作?

或者,在将我的数据重新发布到 verifyReceipt URL 之前,我是否必须运行某种客户端魔法/API 调用?

有一些discussion on this topic here ,但我不清楚我是否可以/应该期望能够通过发布到 verifyReceipt URL 完全在服务器端重新验证订阅,或者我是否也必须在客户端做一些事情。

谢谢!

最佳答案

从苹果开发者论坛复制过来的,给那些不愿意去论坛的人...

弄清楚了(但不是感谢 Apple 文档):

1 month subscriptions auto-renew every 5 minutes. So far so good. They auto-renew 5 times and then they stop, so after 25 minutes you'll get the 21006 error. However even when repurchasing the same subscription it will NOT auto-renew again on the same test account since it has already auto-renewed 5 times. So if you want to test renewal and you have been messing with these subscriptions for a while you need to create a new itunes connect test user. This is very annoying honestly and it would be a lot easier if we could just reset the entire purchase history of a test user account. Also putting all in-app test information in the Xcode documentation would be a lot better as opposed to spreading it over Xcode docs/iTunes Connect doc/people figuring stuff out themselves

希望这对您有所帮助。

关于iphone - 如何在iOS App Store Sandbox中测试自动续订订阅的 "renew"组件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6588539/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com