In-App Purchase Error Code 0

懵懂的女人 提交于 2019-12-04 11:48:28

This error can also be caused by trying to use the incorrect iTunes Connect test account. If you attempt to use a test account for another team than the one the app you are testing is registered to, it will cause the same error with no more specific message.

Thanks to @user1120741 and @Let's Spot it for verifying this was an Apple issue and posting when it was patched up.

Because Apple does not provide us with an easy means to see system issues like this, developers are left second-guessing fully functioning code.

The Moral: Check Twitter, SO and other sites when you have issues like this. If you're sure you have functioning code, you've nuked Simulator, and it still doesn't work, inform others of your issue (Twitter, SO, etc) and simply wait a few hours.

This kind of error (Unknown error or error = 0) is caused by various kind of reasons with two main categories. One is the test user account problems (not the same country, inactive, somehow blocked by Apple etc.) the other is the

payment.productIdentifier 

when you give a incorrect one because of typo or any other reason.

I would like to add that you will also receive "failed" with an error code of 0 (zero) if you are attempting to make an In-App purchase from a simulator. In-App purchases can only be successfully tested from a device.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!