Consumable items can't be purchased twice

4 replies [Last post]
Blue Spruce Games's picture
Blue Spruce Games
User offline. Last seen 2 days 16 hours ago. Offline
Joined: 14 Feb 2011

I am trying to set up an in-app purchase for a virtual currency for my app. The purchase works fine the first time, but then the second time, after hitting the "buy" button in Apple's popup, I get a message saying:
"You've already purchased this In-App Purchase but it hasn't been downloaded.
[Environment: Sandbox]"
I set this item up in iTunes connect as a consumable good, so shouldn't that error not come up? If it's a consumable, you can buy an item twice (or so I think).
What does anyone know about this? Is there anyone who's successfully been able to get a consumable in-app purchase working?
Thanks,
Peter

Replies

chevol
User offline. Last seen 14 hours 40 min ago. Offline
Joined: 10 May 2011

Are you calling store.finishTransaction( transaction ) after the purchase? It sounds like Apple isn't being notified that the purchase and download have gone thru.

Blue Spruce Games's picture
Blue Spruce Games
User offline. Last seen 2 days 16 hours ago. Offline
Joined: 14 Feb 2011

As far as I know, the finishTransaction call works fine. (My print statement the line afterward fires and there are no errors) Is there any other problem that would cause this?

garethW's picture
garethW
User offline. Last seen 6 days 5 hours ago. Offline
Joined: 8 Apr 2011

Did you ever resolve this? I am experiencing the same thing.

Blue Spruce Games's picture
Blue Spruce Games
User offline. Last seen 2 days 16 hours ago. Offline
Joined: 14 Feb 2011

No, I have not yet resolved this. (If anyone else can help, please do!)
It seemed to work sometimes, but others it didn't, so I just put another IAP with a higher amount of virtual currency in my app, and then let users choose. I have yet to have any users contact me about this problem, so I assume that it has not yet been noticed. (although I would love to get it fixed!)
Sorry,
Peter

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.