views:

912

answers:

6

Hello,

I'm attempting to test a Store Kit transaction with the iPhone 3.0 SDK. I am basing my code off the sample code in the Store Kit Programming Guide, but I keep getting failed transactions (status: SKPaymentTransactionStateFailed). However, the transaction's error property is nil, so that doesn't shed any light on the situation.

When I attempt to purchase the product, I am able to log-in with a test account and accept the purchase, but then I get a dialog box that says:

"You've already purchased this but it hasn't been downloaded. Tap OK to download it now."

When I tap "OK" nothing happens. My transactionObserver doesn't get any more messages sent to it.

A: 

As it turns out, my test account had been deleted from iTunes Connect (even though it was letting me log in). I created a new test account and it started to work. I believe the "Tap OK to download it now" message was actually an attempt to re-initiate the transaction, which would then fail again.

StoreKit error reporting is a complete cluster. please submit a bug report to: http://developer.apple.com/bugreporter/bugrptform.html and maybe it will get better.
Carl Coryell-Martin
A: 

im having this exact same problem.

I tried to create a new user, but its still occuring. whats going on here, anyone else have answers to this?

Joshua
A: 

Any ideas about this? My App implemented storekit successfully. And i made a few transaction. But tomorrow morning my app's store didn't work. When i create a new test user and buy a content storekit says "You've already purchased this but it hasn't been downloaded. Tap OK to download it now.". When the user taps OK nothing happened... Any suggestions?

abayrakli
A: 

ya this is very weird. I had microtransactions working properly a week ago, but now that i am looking into it again, it just all of a sudden stopped working for me as detailed above, i have no idea whats going on here. seams to be a problem on the other end of the line (apple). I tried to make another test account, same thing. its weird, because even though i made a BRAND NEW ACCOUNT and tried to purchase a test microtransaction, it still says the user already purchased the item, weirdness.

Joshua
A: 

I had this exact problem, turns out I was using an invalid test account (The test account was bound to a different apple developer account from the one the application was linked to). Checked test account credentials and everything was hunky dory.

@wdlindmeier: I see you also had the same solution: I'd suggest that you accept this answer or your own in case that helps anybody. :)

Uberhamster
A: 

I had the exact same issue with consumable items. It turns out the above answer was correct. My teammate accidentally deleted my test account. Everything works fine after I created a new one.

LGY