应用内购买问题
我正在研究通过应用程序购买的 iPhone 型号,并且需要实施订阅。 Ex 内容将在 24 小时内提供。现在最重要的是它需要在所有其他设备上可用,因此可以在 iPhone 上购买,在 iPad 上查看。我不确定这是如何运作的?我需要在开发者服务器上存储一些信息,但这是交易 ID 和当前日期/时间,以便在 iPad 上启动应用程序时,您将尝试再次购买内容。 Apple 将看到该用户已经购买了该商品,并希望返回交易 ID。那时我可以验证时间限制是否仍然有效。 任何人都可以确认此方法有效吗? 如果这是正确的,是否有“更新”?
I am looking into the iPhone in app purchased models and need to implement a subscription. Ex content will be available for 24 hours. Now the most important thing is that it needs to be available on all the other devices, so bought on the iPhone, viewable on the iPad. I'm not sure how this works ? I need to store some information on the developer server but is this the transaction id and current date/time so when launching the app on the iPad, you will attempt to buy the content again. Apple will see that this user already bought that and hopefully returns the transaction ID. At that moment I can verify if the time limit it still valid or not.
Can anyone confirm this method off working?
If this is correct is there a 'renew'?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我错了请纠正我。
您只需要存储“收据数据”,不需要存储交易 ID 和当前日期/时间。显然,您必须创建“订阅”类型的产品,这将确保购买的产品在所有用户的设备上共享。
如何通过 AppStore 验证收据。
Correct me if I am wrong.
You just need to store the "receipt-data", don't need to store transaction id and current date/time. Obviously you have to create the kind of product as "subscriptions", this will ensure that the purchased product is shared on all user's devices.
How to verify a receipt with the AppStore.