如何判断用户是否购买了该商品?

发布于 2024-12-02 18:45:15 字数 195 浏览 1 评论 0原文

我想使用苹果应用程序内购买方法,使用我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

成熟的代价 2024-12-09 18:45:15

一旦您的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文