Skip to content

[in_app_purchase] "buyConsumable" ignores "autoConsume" param #83035

@qwert2603

Description

@qwert2603

Hello!

In in_app_purchase plugin version 1.0.0:

Method InAppPurchase.instance.buyConsumable ignores autoConsume param when delegating call to InAppPurchasePlatform.instance.buyConsumable.

From source code:

  // in_app_purchase.dart
  Future<bool> buyConsumable({
    required PurchaseParam purchaseParam,
    bool autoConsume = true,
  }) =>
      InAppPurchasePlatform.instance.buyConsumable(
        purchaseParam: purchaseParam,
      );

So InAppPurchasePlatform.instance.buyConsumable is called with its default bool autoConsume = true and autoConsume: false passed to InAppPurchase.instance.buyConsumable is ignored.

I can fix this issue, so it can be assign it to me.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions