在应用程序购买中 - 当再次尝试购买消费品时 - 此应用内购买已经被购买 [英] In App Purchase - when trying to buy consumable product again - this in-app purchase has already been bought
问题描述
我的iTunes连接中有可用的产品,当我试图买两次(在我的iPhone上)时,它告诉我我已经买了它。但这是消耗品的全部要点,用户可以一遍又一遍地购买。有什么建议?
I have ca onsumable product in my iTunes connect, and when I'm trying to buy it twice (on my iPhone), it tells me that I already bought it. But this is the whole point of consumables, that users can buy them over and over. Any suggestions?
推荐答案
如果您没有将原始购买的交易标记为已完成,则会发生这种情况,您应该在您的 - (无效)paymentQueue :( SKPaymentQueue *)队列updatedTransactions:(NSArray *)交易
成功处理购买后的方法。
This happens if you haven't marked the transaction for the original purchase as finished, which you should do in your - (void)paymentQueue:(SKPaymentQueue*)queue updatedTransactions:(NSArray*)transactions
method after you've successfully processed the purchase.
您需要调用的方法是 [[SKPaymentQueue defaultQueue] finishTransaction:transaction]
。
这篇关于在应用程序购买中 - 当再次尝试购买消费品时 - 此应用内购买已经被购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!