iosswiftskproduct

In App Purchase - when trying to buy consumable product again - this in-app purchase has already been bought


I have consumable In-App-Purchase 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?


Solution

  • 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.

    The method you need to call is [[SKPaymentQueue defaultQueue] finishTransaction:transaction].