Apple In app purchase StoreKit error

夙愿已清 提交于 2019-12-03 16:22:56

It looks like the problem isn't on your side. According to Technical Q&A QA1691, your code is fine.

Try changing:

SKPayment *payment = [SKPayment paymentWithProduct:[response.products objectAtIndex:0]];

to:

SKPayment *payment = [SKPayment paymentWithProductIdentifier:[response.products objectAtIndex:0].productIdentifier];

I had the same problem as you and this change worked for me.

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