In-app purchases not working for some of my users

Hi all,

Just wondering if anyone can shed some light on this. Our app Ask The Cheesemonger has been on the app store for a few weeks now. Some of the users have been complaining to us that the In-app purchase keeps failing, specifically calling:

transaction.state == "failed"

I am guessing it is user error (no internet), or an itunes error causing this but is there any further documentation on all of the reasons that this transaction state gets called? I am updating the app now and will be putting in the transaction.errorString so users can tell me better why its failing for them.

I cannot simulate this at all on my end.

Cheers! [import]uid: 69160 topic_id: 20245 reply_id: 320245[/import]

Can anyone help me with all the reasons that transaction.state == “failed” gets called?

A list of all possible reasons would be nice so I can let my users know what they can try to get the purchase to work… [import]uid: 69160 topic_id: 20245 reply_id: 80745[/import]

I’m not sure what would exactly cause that, but I’m assuming that if the same code works for some of your users, then it must be an error somewhere in the network request. I would assume it is due to the network connection being interrupted, the user being offline, or the connection timing out (due to bad signal, hiccup on Apple’s servers, etc). [import]uid: 52430 topic_id: 20245 reply_id: 80751[/import]

Thanks for responding JB!

Yes I came to the same conclusion but one of the users said that no matter what they tried they couldn’t get it to work on their iPhone 4S but when they tried on their older 3GS the purchase went through fine and then was able to be restored on their 4S.

That is the reason I would like to know all possible reasons the transaction.state == “failed” gets called.

As mentioned though I am updating it with putting the error callback into a popup so hopefully this will make it easier for users to tell me why it’s failing. [import]uid: 69160 topic_id: 20245 reply_id: 80753[/import]