question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Product Purchase Refunded but receiving error "you already own this item"

See original GitHub issue

Version of react-native-iap

4.5.3

Version of react-native

0.61.5 Android

Expected behavior

  1. User has attempted to purchase a product.
  2. Some issue has prevented the acknowledge
  3. They are refunded
  4. They attempt to repurchase

Expected to be able to repurchase. Or to receive a refunded status

Particularly looking at the case where the user purchases and there is an issue with acknowledge.

Actual behavior

  1. User has attempted to purchase a product.
  2. Some issue has prevented the acknowledge
  3. They are refunded
  4. They are unable to purchase and Receiving the below error message after calling
RNIap.requestPurchase(sku, false);
purchaseErrorListener {"code": "E_ALREADY_OWNED", "debugMessage": "Item is already owned.", "message": "You already own this item.", "responseCode": 7}
 WARN  E_ALREADY_OWNED You already own this item.

Tested environment (Emulator? Real Device?)

Tested on a device with an android billing test account

Does this just go away with some cool off period or there something else going on?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
felipecespedescommented, Feb 1, 2021

I was experiencing the same issue and solved it by consuming the Android item

RNIap.finishTransaction(purchase, true);

In order to avoid this issue make sure that when refunding non-consumable items you check the Remove entitlement checkbox as in the following image:

screenshot_162

0reactions
andresesfmcommented, Jul 2, 2021

Closing as solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

"You already own this item" Google play inapp error
You refund the purchase from Google Play Console. But there's a catch. When you refund it you will have to remove the entitlement...
Read more >
Problems with in-app purchases - Google Play Help
Troubleshoot the issue on your own. Contact the developer for support. Request a refund. If you're trying to make an in-app purchase but...
Read more >
Android in app purchase issue: You already own this item
Sometimes this happens when there is an error while completing the transaction. Can you do the following: Settings->Apps->All->Google Play Store ...
Read more >
How to Fix In-App Purchases Not Working on Android
To apply for an in-app purchase refund, open the app page on the Play Store, scroll down to the bottom, and tap on...
Read more >
Integrate the Google Play Billing Library into your app
To receive updates on purchases, you must also call setListener() ... an item for sale, check that the user does not already own...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found