iphone - 何时向用户收取应用内购买费用?

标签 iphone ios in-app-purchase

用户什么时候为 iOS 应用内购买收费

它在 addPayment 之间吗?和 paymentQueue:updatedTransactions:收到 SKPaymentTransactionStatePurchased,还是在调用 finishTransaction 之后?还是其他地方?

文档中是否明确提到了这一点?

最佳答案

我想你正在寻找这个。

SKPaymentTransaction A transaction is created for every payment added to the queue. Each transaction has properties that allow your application to determine the status of the transaction. When payment is collected, the transaction includes additional details about the successful transaction.

这里是: http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/MakingaPurchase/MakingaPurchase.html#//apple_ref/doc/uid/TP40008267-CH3-SW1

看起来当您有一个 transactionReceipt 时付款就完成了。

关于iphone - 何时向用户收取应用内购买费用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7879448/

相关文章:

ios - 应用已上线但未提交 InApp Purchase

android - 允许用户在我的 Android 应用中销售应用内商品

ios - 从目标 View Controller 推送新的 View Controller (快速)

iphone - 快速自定义 UITableViewCell

iphone - 优化 iPhone 应用程序启动时间

ios - 更新到 Xcode 7 Beta 5 和 Swift 2 产生了多个错误

VisionKit 框架 iOS 13 中的 iOS 应用程序崩溃

ios - webview 在 objective-c 中不起作用

ios - 使用 GCD 复制大文件 - Dispatch IO 消耗大量内存

iphone - 通过应用内购买完成购买后,将标志存储在 NSUserDefaults 中是否安全?