Problem with testing In App with sandbox test account

Posted by Nava Carmon on Stack Overflow See other posts from Stack Overflow or by Nava Carmon
Published on 2009-11-05T08:43:07Z Indexed on 2010/03/21 17:11 UTC
Read the original article Hit count: 488

Hi,

I created a test user account through the Manage User Accounts in iTunes Connect. When you create such an account you have to select a valid storefront for your account. I chose US Store. Now I signed out from the store in App Store settings on my device. Ran the application and tried to perform a purchase. I successfully login with my test account. After I press Confirm when entering my credentials I get an alert, that comes from SKPaymentTransactionStateFailed from the observer. It says "Your account is only valid for purchases in the US iTunes Store". The error state = 0 unknown. Second time when i try to perform the purchase, StoreKit only asks me for a password like the previous login was successful. After entering a password I can perform a purchase. My question is whether it's only because it's a testing account and the application is not actually on AppStore? What should I do to avoid this message or at least to continue the purchasing process?

Thanks a lot,

Nava

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0

Related posts about in-app-purchase