如何判断用户是否购买了该商品?
我想使用苹果应用程序内购买方法,使用我的 iPhone 应用程序销售视频。
如果任何用户想要观看从我的服务器位置下载的视频,他们需要付费。然后只有他们需要观看该视频。
在这里,我想知道一件事,当用户点击要观看的视频时,我想打开他观看他是否已付费,否则不会。
那么如何区分特定用户是否购买了该商品呢?
感谢您的帮助
I want to sell videos using my iphone app using apples InApp Purchase methodology.
If any user wants to see the video which will be downloaded from my server location, they need to make a payment for it.then only they need to see that video.
Here, i would like to know one thing when a user tabs on a video to watch , i want to open him to watch if he has paid otherwise not.
So how can i distinguish whether the particular user has purchased this item or not?
Thanks for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一旦您的 transaction.transactionState 变为 SKPaymentTransactionStatePurchased,您就可以始终检查 SKPaymentTransaction,您可以为该用户保存一些信息,这样下次如果他再次打开应用程序,项目购买状态将被购买,但第一次所有项目都将处于购买状态未购买状态。
you can check always for SKPaymentTransaction once your transaction.transactionState is become SKPaymentTransactionStatePurchased, you can save some information for that user so next time if he open the app again the item purchase state would be purchased, but for first time the all item would be in not purchased state.