在 ios 中重新购买自动续订订阅错误

Re purchasing on auto renewable subscription Error in ios

我正在重新购买订阅,它给我这个弹出窗口 "You are currently subscribed" 然后在 UpdateTransaction 观察器中我得到,交易状态失败。 http://prntscr.com/n7tiq1 https://prnt.sc/n7ti45

这是预期的行为 - 您无法重新购买已拥有的订阅。您将得到 SKErrorCode = 2 的失败原因,即付款已取消:https://developer.apple.com/documentation/storekit/skerrorcode

希望 Apple 将来可以改进这一点,自动恢复订阅或其他内容并发送成功响应。