Android In-App billing cancel payment

大城市里の小女人 提交于 2019-12-18 03:47:26

问题


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? (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.


回答1:


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. 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. When you do this, Android Market receives a refund notification from Google Checkout, and Android Market sends a refund message to your application. For more information, see Handling IN_APP_NOTIFY messages and In-app Billing Pricing.

Source




回答2:


Actually, if you apply the refund the following will happen:

1) you app will get the refund notification. This often occurs quite quickly 2) Your app will take action and 'remove' the goods from the users inventory. 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. 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.




回答3:


I think you need to run backgrond task(once a week for example), to check if user own that items or not.



来源:https://stackoverflow.com/questions/6817507/android-in-app-billing-cancel-payment

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