5

Apple 发布了 StoreKit,当用户输入他/她的电子邮件和密码时,我们甚至无法收到取消事件的任何回调:

[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]

此事件不应与取消购买时按取消相混淆。

我们感兴趣的事件是在尝试恢复事务时推送取消。

用户按下取消,甚至按下 OK 按钮,没有回调。

您获得的唯一回调是来自服务器的信息返回,表明它是否成功。不可接受。

4

1 回答 1

12

试试这个:

@protocol SKPaymentTransactionObserver <NSObject>

....

@optional

// Sent when an error is encountered while adding transactions from the user's purchase history back to the queue.
- (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);


@end
于 2010-08-05T14:17:17.450 回答