Multiple SKPaymentTransaction

旧时模样 提交于 2019-12-06 07:25:49

When a transaction is completed, cancelled, or failed, you need to remove it from the queue, or you will have multiple transactions still active in the payment queue. This is what is causing your problem. To fix this, whenever a transaction is completed, cancelled, or failed, call the following.

[[SKPaymentQueue defaultQueue] finishTransaction:transaction];

You need to do [[SKPaymentQueue defaultQueue] finishTransaction:transaction] on each transaction to remove it from the queue.

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