1

I'm a little confused on when exactly to call:

[[SKPaymentQueue defaultQueue] finishTransaction:transaction]; in a 'Server Product Model': http://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Art/store_transactions.jpg

Should it be called when my server returns me that receipt is valid and I can display paid content or should I call it immediately after I get back receipt (purchased or restore) from itunes ?

Thanks

4

2 回答 2

0

当服务器检查收据时,您应该调用它。如果您过早调用 finishTransaction 并且您的应用程序崩溃或互联网连接在您的服务器记录购买之前中断,那么客户的钱就没有了,但您没有交付货物。如果收据无效,则收据不是来自 Apple。调用finishTransaction 可能没有什么坏处。

于 2015-08-18T13:59:46.987 回答
-1

当您的服务器返回收据有效并显示付费内容时,应该调用它。

于 2011-10-21T07:48:52.457 回答