We found that your app offers in-app Purchase/s that can be restored but it does not include a “Restore” feature to allow users to restore the prevIoUsly purchased in-app Purchase/s.
To restore prevIoUsly purchased in-app Purchase products,it would be appropriate to provide a “Restore” button and initiate the restore process when the “Restore” button is tapped.
For more @R_960_4045@ion about restoring transactions and verifying store receipts,please refer to the
并没有链接参考,我已经实施了:
– (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)事务
同
SKPaymentTransactionStateRestored案例。
但我没有实现:
`restoreCompletedTransactions` or `paymentQueueRestoreCompletedTransactionsFinished`
应用程序购买是否需要批准这些方法,或者确切的问题是什么。
谢谢
解决方法
- (void) checkPurchasedItems { [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; }// Call This Function //Then this delegate Function Will be fired - (void) paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue { purchasedItemIDs = [[NSMutableArray alloc] init]; NSLog(@"received restored transactions: %i",queue.transactions.count); for (SKPaymentTransaction *transaction in queue.transactions) { Nsstring *productID = transaction.payment.productIdentifier; [purchasedItemIDs addobject:productID]; } }
purchasedItemID将包含用户购买的所有产品ID。当您完成显示所有这些产品以使用户再次下载它时,您可以放置一个按钮来调用此功能。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。