learner
learner

Reputation: 11800

Android In app billing purchase history query

I am building an app that I want to use Google in app billing for. Does Google track in-app purchase history for me, so that I can query history and get data, say, by date or by item, etc. Or must my app itself store user's purchase history on my own backend? Also, if you can please provide a link so I can verify this info.

Upvotes: 2

Views: 7055

Answers (1)

Ankit
Ankit

Reputation: 1916

For your question answer is both YES and NO Google will take care of all purchases based on product type. If you are using Non-consumable or Subscription based products Google will keep records, in other case if you are using Consumable products Google will keep it's record till your app consumes that product.

If your app sends a purchase request Google will associate it with primary gmail account registered on android device and will not allow to purchase same product twice.

NOTE:- If You are using IAB-2 then above product type and flow will slightly different Non-consumable ** is known as **Managed Products *Subscription* is same as Subscription *Consumable* is known as Unmanaged products

In case of IAB-2 google will never keep record of Unmanaged products and it is your responsibility to keep records if you want.

For more details see below link to developer guide.

Developer guide

Upvotes: 6

Related Questions