dooboolab-community / flutter_inapp_purchase

(Sun Rised!) Flutter plugin for In App Purchase.
MIT License
549 stars 235 forks source link

How can I make a purchase for consumable items? #393

Closed dev-musit closed 1 year ago

dev-musit commented 1 year ago

Version of flutter_inapp_purchase

5.3.1

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

Android

Expected behavior

able to purchase multiple times

Actual behavior

Returned an error "You already own the item"

Tested environment (Emulator? Real Device?)

Emulator

Steps to reproduce the behavior

Set up everything, just like the example file(fixed some outdated codes) and run the requestPurchase code looking like below:

void requestPurchase(IAPItem item) { FlutterInappPurchase.instance.requestPurchase(item.productId!); }

I looked up everything I could check and there was no option for consumable items like buyConsumable in in_app_purchase.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.