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

making android consumable products purchase not possible with revenue cat package? #287

Closed
5 tasks
abeyshiferaw0 opened this issue Jan 9, 2022 · 3 comments
Closed
5 tasks
Assignees
Labels
bug Something isn't working status: needs-additional-info Issues that are missing steps from bug template

Comments

@abeyshiferaw0
Copy link

Describe the bug
hi, i was trying to set up a consumable products based on Non-Subscription Purchases doc recommendations from revenue cat https://docs.revenuecat.com/docs/non-subscriptions.

but after calling purchaseProduct for a consumable product i can't seem to purchase this product again because it was bought as a non-consumable and a an already bought error comes up

  1. Environment

    1. Output of flutter doctor
      [✓] Flutter (Channel stable, 2.8.0, on macOS 11.5.2 20G95 darwin-x64, locale
      en-ET)
      [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
      [!] Xcode - develop for iOS and macOS (Xcode 12.5.1)
      ! Flutter recommends a minimum Xcode version of 13.0.0.
      Download the latest version or update via the Mac App Store.
      [✓] Chrome - develop for the web
      [✓] Android Studio (version 2020.3)
      [✓] VS Code (version 1.63.2)
      [✓] Connected device (2 available)
  2. Debug logs that reproduce the issue
    E/[Purchases] - ERROR(13710): 🤖‼️ BillingWrapper purchases failed to update: DebugMessage: . ErrorCode: ITEM_ALREADY_OWNED.null
    E/[Purchases] - ERROR(13710): 🤖‼️ This product is already active for the user.

  3. Other information it would be great if the purchaseProduct() method could accept another parameter to specify if the product is consumable or non-consumable for android to make sure that the product is consumed and can be bought again

@abeyshiferaw0 abeyshiferaw0 added the bug Something isn't working label Jan 9, 2022
@ghost ghost added the status: needs-additional-info Issues that are missing steps from bug template label Jan 9, 2022
@ghost
Copy link

ghost commented Jan 9, 2022

Hello! It doesn't seem like we have quite enough information to send this to a human yet to help out. We would love if you could provide more details about your issue by following the template without modifying any of the pre-filled text. If you're looking for support, head over to our Community.

@abeyshiferaw0 abeyshiferaw0 changed the title making android consumable products purchase not possible with revenue cat package making android consumable products purchase not possible with revenue cat package? Jan 9, 2022
@aboedo
Copy link
Member

aboedo commented Jan 14, 2022

hi! 👋

Are you setting observerMode to true or finishTransactions to false? Otherwise, the SDK should always consume the purchases and allow for another purchase to go through straight away.

it would be great if the purchaseProduct() method could accept another parameter to specify if the product is consumable or non-consumable for android to make sure that the product is consumed and can be bought again

This is very valid feedback, and we're thinking about ways to make that easier to work with.

@taquitos
Copy link
Contributor

taquitos commented Feb 3, 2022

We're working on a way to make this better, no ETA, but let us know if you need anything else!

@taquitos taquitos closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status: needs-additional-info Issues that are missing steps from bug template
Projects
None yet
Development

No branches or pull requests

4 participants