Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In app purchase displays message "you already own this item." in android

I am trying to implement in-app. In android, in-app is working perfectly.But, when I remove the app from device and reinstall it, then after if I try to purchase, it displays this message (product is Managed and in-app API Version 2)

enter image description here

and in log, I have an error RESULT_DEVELOPER_ERROR , then I googled and I found the Version 3 has more number of response codes like BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED

So if product is already purchased, the response must be like BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED and this is not possible in Version 2.

Then what should I do ? Do I need to implement Version 3 ?

like image 870
Youddh Avatar asked Dec 26 '12 11:12

Youddh


1 Answers

if you want force to buy product by every time then product should be Unmanaged.

Products can be of 3 types

1) Managed

2) Unmanaged

3) Subcription

Managed means google it self keep record. so by using same email id user not have to paid its charge e.g. remove ads

Unmanaged means user have to buy every time and will be a charged. e.g. Pocker chips

This 2 example i have read on developer site..

and refer http://developer.android.com/google/play/billing/billing_admin.html

like image 195
Sanket Kachhela Avatar answered Oct 20 '22 20:10

Sanket Kachhela