Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
0hio-creator opened this issue Sep 2, 2020 · 6 comments
Labels
🤖 android Related to android 🙏 help wanted Extra attention is needed 🕵️‍♂️ need more investigation Need investigation on current issue Stale

Comments

@0hio-creator
Copy link

0hio-creator commented Sep 2, 2020

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?

@hyochan hyochan added 🤖 android Related to android 🙏 help wanted Extra attention is needed 🕵️‍♂️ need more investigation Need investigation on current issue labels Sep 26, 2020
@hyochan
Copy link
Member

hyochan commented Sep 26, 2020

Looks like we need minimal reproduction or additional information to handle this problem.

@leotm
Copy link

leotm commented Dec 11, 2020

I've just got this in our sandbox env

Screenshot 2020-12-11 at 15 02 28

This is without a refund.

You can ignore the blank text there (data issue).

I think the message is probably right, I did buy this earlier today while doing some QA, but how do we remove the msg and allow purchase?

@leotm
Copy link

leotm commented Dec 11, 2020

I'll make sure I'm consuming the Android item

@felipecespedes
Copy link
Contributor

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

@stale
Copy link

stale bot commented Jun 4, 2021

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale label Jun 4, 2021
@andresesfm
Copy link
Collaborator

Closing as solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Related to android 🙏 help wanted Extra attention is needed 🕵️‍♂️ need more investigation Need investigation on current issue Stale
Projects
None yet
Development

No branches or pull requests

5 participants