沙盒尝试还原消耗性IAP [英] Sandbox trying to restore consumable IAP

查看:113
本文介绍了沙盒尝试还原消耗性IAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在iOS上测试一些易用的IAP,但遇到一个奇怪的错误.带有以下文字的警报弹出:

I've been trying to test some consumable IAP on iOS, and I'm getting a strange error. An alert pops up with the text:

"此应用内购买已被购买.它将恢复为 自由. [环境:沙箱]"

"This In-App Purchase has already been bought. It will be restored for free. [Environment: Sandbox]"

我已经检查过,并且可以确定我的IAP在iTunesConnect中是可消耗的.看来我的验证过程以某种方式失败了,但是我不希望看到此错误消息.有人对此有任何经验吗?

I have checked, and I'm certain that my IAP is consumable in iTunesConnect. It seems that my validation process is somehow failing, but I wouldn't expect this error message. Does anyone have any experience with this?

推荐答案

我不确定这是否是正确的操作,但请致电:

I'm not sure if this is the correct action, but calling:

[[SKPaymentQueue defaultQueue] finishTransaction: transaction];

在重复交易中将其清除.我怀疑由于在调试器中停止运行或其他原因而无法在成功案例中调用它.

on the repeating transaction cleared them out. I suspect that I never called it in the success case due to stopping in the debugger or something.

这篇关于沙盒尝试还原消耗性IAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆