user2136
user2136

Reputation: 811

inapp purchase - An unknown error has occurred - 5002 error code - iOS5

On ios5 simulator, I am trying to test my in app purchase using test account. when i tried to do test purchase ,it prompted to me to enter app-store credentials. i entered my test account credentials.

but i get the

error as An unknown error has occurred and the error code i got is 5002

.

i deleted all the contents from my simulator ,cleaned the build no use.i also created new test user account but it doesnot work.

please let me know

Upvotes: 1

Views: 1713

Answers (2)

miho
miho

Reputation: 12085

It is not possible to test In-App purchases from the iOS Simulator as documented in the StoreKit documentation provided by Apple.

Upvotes: 0

MilanPanchal
MilanPanchal

Reputation: 2953

If you are testing your app on simulator then you will get following error.

Error Domain=SSServerErrorDomain Code=5002 "An unknown error has occurred" UserInfo=0x80ca070 {NSLocalizedDescription=An unknown error has occurred}

Because, store-kit doesn't work on simulator. If you want to test your InApp Purchase then you must have to test on real iOS device not on simulator.

You can find more details from here

Upvotes: 2

Related Questions