简体   繁体   English

Google应用内结算取消测试购买

[英]Google in-app billing cancel test purchase

I'm testing in-app billing with my own cellphone 我正在使用自己的手机测试应用内结算

I've sucessfully added some acounts to alha track and they can now buy the goods in the test mode. 我成功地为alha track添加了一些额外的东西,他们现在可以在测试模式下购买商品了。

The thing is due a bug existent in the first alpha version the purchased good wasn't being consumed and now everytime i try to purchage i get 事情是由于第一个alpha版本中存在的错误,购买的商品没有被消费,现在每次我尝试购买我得到的

ITEM_ALREADY_OWNED
int ITEM_ALREADY_OWNED
Failure to purchase since item is already owned

reading googles guide about testing in-app billing it says: 阅读googles关于测试应用内结算的指南它说:

Cancel completed test purchases Google Play accumulates completed test purchases for each user, but does not pass them to financial processing. 取消已完成的测试购买Google Play会为每个用户累积已完成的测试购买,但不会将其传递给财务处理。

In some cases, you may want to manually cancel a trial purchase to continue testing. 在某些情况下,您可能需要手动取消试用购买以继续测试。 To do so, open the app page in the Play Store. 为此,请在Play商店中打开应用页面。 If the test purchase you want to cancel is a subscription, you can also use the cancel () method of the Purchases.subscriptions API. 如果您要取消的测试购买是订阅,您还可以使用Purchases.subscriptions API的cancel()方法。

I do not find an option to cancel the test purchases at googles play page of my app, nor in the console neither in the tester account... 我找不到在我的应用程序的谷歌播放页面上取消测试购买的选项,也没有在测试仪帐户中的控制台中取消测试购买...

how can i cancel it to keep testing? 我如何取消它以继续测试?

The problem here is that you need to consume the item, instead of cancelling. 这里的问题是您需要使用该项目,而不是取消。 The item was purchased, and while not consumed you won't be able to buy it again. 该商品已被购买,虽然没有消费,但您将无法再次购买。 Please check this answer on how to consume the item. 请检查如何消费的项目答案。 Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM