Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check my In-app billing product is already purchased in app by user?

i need to check when app start then the In-App product is already purchase by user or not.

how to check user is already purchase specify app product ?

its also working when app uninstall and re-install app , this functionality provide by android api or not ?

can anyone suggest me which step follow for this so user not again purchased product and we check in app side its purchased then we give some features to users in app..

Thanks

like image 628
SBJ Avatar asked Feb 27 '12 09:02

SBJ


People also ask

How do I check in-app purchases?

On selecting the device, the uploaded/selected app will automatically open in the device in question. Alternatively, you can sign in to Google Play Store, download and install a published app and test its in-app purchase feature. Just pick the Install via Google Play Store option.

How do I check in-app purchases on Android?

To test your Google Play Billing Library integration using test tracks, do the following: Publish your app to a test track. Note that after you publish an app to a testing track, it can take a few hours for the app to be available for testers. Ensure each tester opts-in to your app's test.

What does in-app purchases mean in App Store?

With some apps, you can buy additional content or services within the app. We call these "in-app purchases." Here are some examples of in-app purchases: A sword that gives you more power in a game. A key that unlocks more features of an app.

Do I get charged for in-app purchases?

Even if people download an app for free, chances are it can still cost them something through in-app purchases. This is true for both App Store and Google Play users, prompting users to spend, whether it's for additional features, game add-ons, or subscriptions.


1 Answers

First of all, you need a database to persist the orders. Second of all, when the user install the your app. You have to issue a RESTORE_TRANSACTIONS what the user has bought and insert the result into the local database. you can read more in this link. http://developer.android.com/guide/market/billing/billing_overview.html

search for the keyword RESTORE_TRANSACTIONS

like image 80
CChi Avatar answered Sep 19 '22 13:09

CChi