我可以从沙盒 AppStore 中删除非消耗品的购买吗?

DDR*_*r62 3 iphone app-store in-app-purchase

是否可以使用沙盒删除 AppStore 中非消耗品的购买?'restoreCompletedTransactions' 的响应在第一个非消耗品的购买发生后是不同的。出于测试目的,删除这些购买是非常有价值的,看看不同的函数在购买发生后如何返回不同的值。或者。 . 是我添加越来越多的非消耗品进行测试的唯一选择,即便如此,'restoreCompletedTransactions' 的行为也不会完美吗?

Asy*_*ote 5

I have researched and googled a lot on this, but couldn't find the way to reset. But I read a post where the guy said that for non-consumable inApps the itunesConnect frequently reset/clear the purchase for test accounts, But I have not yet experienced it.

So I think the only way left and what I opted (and what you have suggested too) is to make new non-consumable inApps and be careful about product identifier.

For Example when I was testing I made a non-consumable inApps with identifier:

com.[CompanyName].[AppName].inapp.removeAds1
com.[CompanyName].[AppName].inapp.removeAds2
com.[CompanyName].[AppName].inapp.removeAds3
Run Code Online (Sandbox Code Playgroud)

and so on

and finally when all was set. I deleted previous ones and made one:

com.[CompanyName].[AppName].inapp.removeAds
Run Code Online (Sandbox Code Playgroud)

Just a caution: If you delete these inApps (used for testing), you can not use the same identifier (the one you deleted) to create a new one. Not sure if it will be of any help but I am very obsessed regarding the naming conventions :P