iOS StoreKit2 - 是否有办法找到哪些付款仍待处理
我已经开始使用新的 StoreKit2 API。我想知道是否有办法查看应用程序重新启动后产品是否仍处于待处理状态。
在新的 API 中,通过在产品上调用purchase() 来执行购买。
let result = try await product.purchase()
在结果中,人们可以获取一组值,通过这些值可以查看该商品是否已付款,或者付款是否仍在等待中。
重新启动时,可以调用 Transaction.currentEntitlements
来检查产品是否已购买,但是,我希望能够向用户显示交易是否尚未完成,以便他们查看交易是否仍处于待处理状态
。无论如何可以获取产品的信息吗?
谢谢
礼萨
I have started using the new StoreKit2 APIs. I wanted to know if there is a way to see if a product is still pending after the app is relaunched.
In the new APIs, a purchase is executed by calling purchase() on a Product"
let result = try await product.purchase()
In the result one gets a set of values through which one can see if the item was paid for, or payment is still pending.
When restarting, one can call Transaction.currentEntitlements
which checks if the product was purchased. However, I want to be able to show the user if the transaction has not as yet been completed for them to see that it is still pending.
Is there anyway to get that information for a product?
Thanks
Reza
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论