1
votes

My app contains only consumable IAPs. I am attempting to buy the same consumable IAP second time in a row in a sandbox environment, but 3 seconds after the transaction a screen pops up saying that the purchase has been already bought and will be restored for free.

Since the IAP is defined as consumable in iTunes Connect, I don't see how app store wants to restore it. Is this just a sandbox bug and will work when submitted?

2

2 Answers

0
votes

Make sure the IAP is marked as consumable in Itunes Connect. This should solve the problem...

http://i.stack.imgur.com/Mhrll.png

0
votes

You need to finish transaction wherever it is SKPaymentTransactionStatePurchased or SKPaymentTransactionStateFailed:

[[SKPaymentQueue defaultQueue] finishTransaction:transaction];