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

"You already own this item" for Android consumable #380

Closed
pierregoutheraud opened this issue Jan 24, 2019 · 1 comment
Closed

"You already own this item" for Android consumable #380

pierregoutheraud opened this issue Jan 24, 2019 · 1 comment

Comments

@pierregoutheraud
Copy link

pierregoutheraud commented Jan 24, 2019

Hello,

I created a consumable on iOS and everything is working fine : I can buy the consumable as many times as I want.
However on Android, I am getting this error when trying for the second time:
"Error: You already own this item."

Am I missing something or we can not buy Android consumables multiple times ?

Thank you.

Version of react-native-iap

2.4.0-beta6

Version of react-native

0.57.8

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

I should be able to buy a consumable as many times as I want.

Actual behavior

I can only buy the item once.

Tested environment (Emulator? Real Device?)

Real device

@pierregoutheraud
Copy link
Author

Okay this is a copy of #126
For people wondering (this is not quite clear in the doc), on Android you need to "consume" your products after the purchase so they are able to buy again. (You can use consumeAllItems())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant