Note that there are some explanatory texts on larger screens.

plurals
  1. POiPad In App Purchase fails with SKErrorPaymentCancelled and "Cannot connect to iTunes Store"
    text
    copied!<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/3522899/iphone-storekit-sandbox-stopped-working">iPhone storekit sandbox stopped working.</a> </p> </blockquote> <p>Hi.</p> <p>I updated today to version 3.2.2 of the iPad iOS and I noticed that my In App Purchase testing was not working.<br> I am using a test account and everyhing was working until now (our app is already live since june and the real in app purchase works), but today I wanted to make a test purchase with the same product and test user that I always used and now it's not working.</p> <p>The problem is as follows:</p> <ol> <li>I start the in app purchase.</li> <li>Confirm the purchase and sign in with the test user.</li> <li>Because this is a non-consumable product the App Store notifies me, that I have already purchased this but it hasn't been downloaded.</li> <li>Press OK.</li> <li>Up until now the transaction observer got a transaction with the transactionState SKPaymentTransactionStatePurchased and the user got his/her in app feature.</li> <li>But now the transactionState is SKPaymentTransactionStateFailed with the error: <blockquote> <p>Error Domain=SKErrorDomain Code=2 UserInfo=0x2debe0 "Cannot connect to iTunes Store"</p> </blockquote></li> </ol> <p>Code=2 means SKErrorPaymentCancelled. WTF? This should happen if the user canceled the transaction, not in a real error. This is very misleading. I am not supposed to show this as an error because most of the time this is called if a user really cancels his/her purchase and there is no way to determine whether this error was caused by the user or by the App Store.</p> <p>Everything is set up correctly, as I mentioned the in app purchase testing worked and I get the products as valid. Also I didn't change the code handling the in app purchase.</p> <p>The error must be somewhere on the App Store side.</p> <p>Does anyone else had this problem?</p> <p>Thank you.</p> <h2>Update</h2> <p>I tested the app on the iPhone (it's a universal app) running iOS 4.0.2 and the error looks like this:</p> <blockquote> <p>Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x2620e0 {NSLocalizedDescription=Cannot connect to iTunes Store}</p> </blockquote> <p>The Code=0 is SKErrorUnknown and the app displays an error to the user.<br> So it seems that iOS 4.0.2 handles this problem better than iOS 3.2.2.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload