In App purchase in iOS suddenly stop working ( Error code=5002 occurred )

in-app-purchase, ios

Solution

It has been stopped working on simulator. try to use it on real device. It will work fine.

Problem

I have integrated in-App purchase in my application successfully. I tested it properly by making test user account in itunes. My in-app purchase worked fine. But suddenly my IAP stopped working. App can load all of the products but after entering my account credentials then transection queue undergoes state `SKPaymentTransactionStateFailed` and gives an error Error Domain=SSServerErrorDomain Code=5002 "An unknown error has occurred"

Original source