ios 应用内购买:SKPaymentTransactionStateRestored 何时以及为何作为交易状态发回?
iOS 应用内购买:SKPaymentTransactionStateRestored
何时以及为何作为交易状态发回?
这与定期订阅计划有关吗?
iOS In-App purchases: When and why does SKPaymentTransactionStateRestored
get sent back as status of a transaction?
Does it related to having a recurring subscription plan?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您通过向
SKPaymentQueue
发送restoreCompletedTransactions
消息来恢复用户的购买时,您会收到SKPaymentTransactionStateRestored
交易,而不是SKPaymentTransactionStatePurchased
交易>。You get
SKPaymentTransactionStateRestored
transactions instead ofSKPaymentTransactionStatePurchased
transactions when you are restoring the user's purchases by sending arestoreCompletedTransactions
message to theSKPaymentQueue
.一般规则是处理两个回调:购买和恢复购买。
General rule is to process both callbacks: for purchase and restore purchase.