Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8603223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:16:26+00:00 2026-06-12T02:16:26+00:00

I am testing in-app-billing on Android. I am able to purchase the managed products

  • 0

I am testing in-app-billing on Android. I am able to purchase the managed products and I get the expected response from the server. However when I try to re-buy the managed product from same device , I don’t get any response from google play.

When re-buying I do get the popup message titled “Item already purchased”, but then there’s no response.But the amazing thing is i got response all time earlier.Even if i am trying to re buy same product from same device. Can anyone help me to resolve the issue?

Also is there any way to check if a product is already purchased or not?

Code :

@Override
 public void onPurchaseStateChange(PurchaseState purchaseState,
                               String itemId, int quantity, long purchaseTime,
                               String developerPayload) {}

onPurchaseStateChange() function was not called when I tried to re-buy.

Only got a RESULT_ERROR response to onRequestPurchaseResponse() from google play.But i am I am able to purchase the product on first time and got PurchaseState.PURCHASED status.In the case of re-buying no state is returned. Is this due to a server error associated with Google Play?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:16:28+00:00Added an answer on June 12, 2026 at 2:16 am

    You’re not supposed to re-buy managed items. If you want to sell something more than once use an unmanaged item.

    RESULT_ERROR in response to an attempt to re-buy something you already own seems reasonable. You aren’t going to request a Purchase State Changed message if no purchase has occurred.

    Are you sure you haven’t changed the item you’re using from unmanaged to managed? Or maybe you were using a test product and now you are using an actual product? (You can buy android.test.purchased over and over)

    Your app should be keeping track of the purchases that have been made so that you can mark managed items as purchased to prevent the user trying to repurchase them (and so they know they have already purchased them).

    The only time you need to check if a user already owns any of your managed items is if they reinstall your app. In that case you make a Restore Transactions call and update the apps local record of what has been purchased.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing in-app-billing in my game on Android. I am able to purchase
I am just testing an app to get data off our web server, previously
I want android in app purchase without any transactions from google checkouts accounts,.I want
I´m testing my in-app billing and followed the following steps: Uploaded APK to the
I have successfully downloaded an sqlite datafile from my testing app on my provisioned
I am trying to get started with unit testing an app that uses Core
I am testing my app on the android emulator. On one screen I have
I'm testing out the billing sample application provided by google: http://developer.android.com/guide/market/billing/index.html Everything is going
The new Android in-app billing (http://developer.android.com/guide/market/billing/billing_testing.html) page says: To test in-app billing in an
I'm currently testing an app on Android 4.0 Ice Cream Sandwich before releasing an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.