简体   繁体   English

Android应用内结算取消付款

[英]Android In-App billing cancel payment

When someone buys an in-app product in an Android app and the owner cancels the payment in Google Checkout, so he gets refunded - does the user still keep the item? 当有人在Android应用程序中购买应用程序内产品并且所有者在Google Checkout中取消付款后,他可以退款-用户仍保留该商品吗? (managed type of in-app product). (应用内商品的托管类型)。 I know that a refund is not possible but I would like to cancel orders from users that already donated money, so they can have the in-app product for free. 我知道无法退款,但我想取消已经捐款的用户的订单,因此他们可以免费获得应用内商品。

It's up to you to manage refunded items. 您可以自行管理退款项目。 You have more infos here : 您在这里有更多信息:

In-app billing does not allow users to send a refund request to Android Market. 应用内结算不允许用户向Android电子市场发送退款请求。 Refunds for in-app purchases must be directed to you (the application developer). 应用内购买的退款必须直接交给您(应用开发者)。 You can then process the refund through your Google Checkout Merchant account. 然后,您可以通过您的Google Checkout商家帐户处理退款。 When you do this, Android Market receives a refund notification from Google Checkout, and Android Market sends a refund message to your application. 执行此操作时,Android Market会收到Google Checkout的退款通知,而Android Market会向您的应用程序发送退款消息。 For more information, see Handling IN_APP_NOTIFY messages and In-app Billing Pricing. 有关更多信息,请参阅处理IN_APP_NOTIFY消息和应用内帐单定价。

Source 资源

Actually, if you apply the refund the following will happen: 实际上,如果您申请退款,则会发生以下情况:

1) you app will get the refund notification. 1)您的应用程序将收到退款通知。 This often occurs quite quickly 2) Your app will take action and 'remove' the goods from the users inventory. 这通常会很快发生2)您的应用会采取行动,从用户库存中“删除”商品。 This means they can't get at the item. 这意味着他们无法拿到物品。

However, the Android Market will take some time to take action with repect to the managed item so the user could immediately remove the app from their phone and then re-install it. 但是,Android Market将需要一些时间来对被管理商品采取措施,以便用户可以立即从手机中删除该应用,然后重新安装。 This will cause the app to request details relating to managed items and it will be told the refunded item is still 'owned'. 这将导致该应用程序请求有关托管商品的详细信息,并且将告知退款商品仍为“拥有”商品。 This allows the user to essentially get the item for free provided this is all done quite quickly. 这允许用户从本质上免费获得该项目,前提是这一切都很快完成。

As yet I have not found a way around this timing issue except to either accept this might happen or not allow refunds. 到目前为止,我还没有找到解决此计时问题的方法,只能接受可能发生的情况或不允许退款。

我认为您需要运行backgrond任务(例如每周一次),以检查用户是否拥有该项目。

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

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