Android in-app billing refund

谁说胖子不能爱 提交于 2019-12-04 04:18:42

History table has a single entry per purchase. This means that a purchase which was later refunded will have, after the refund, a single history record for the product with a status of "refunded".

When counting purchases, a "Refunded" state suggests the item has been purchased. It is then up to the developer to decide whether the user should have access to refunded products. (There is an example on this site of a developer wanting to refund purchases made by people who have already donated money, and would like to allow them to keep using the product).

If you don't want refunds to count, You should change your code to add quantity for a purchase, but do nothing for a refund. (Do not set quantity to zero).

In app products come in 3 varieties:

  1. Managed item: Google does not allow to purchase such products more than once. Total quantity can add up to zero or one only.

  2. Unmanaged item: Users can buy such products many times. Total quantity can be zero or more

  3. Subscriptions: The same as managed items.

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