Skip to content

[in_app_purchase_storekit] StoreKit2 and StoreKit1 - Add unfinished transaction type property #165355

@gonzalogauto

Description

@gonzalogauto

Use case

Currently I'm using in-app-purchases to provide a way to purchase consumable products. In the current implementation we have a server validation after the user purchase a product. If that validation fails for any reason we avoid calling the completePurchase method so the purchase remains in a "pending state". The problem with this is that the only way to retrieve the list of pending purchases is by using SKPaymentQueueWrapper() with a code that looks like this.

final transactions = await SKPaymentQueueWrapper().transactions();

This returns a List of SKPaymentTransactionWrapper and that object does not contain the same data we usually see in purchasesStream.

After doing some research I found that SKPaymentQueueWrapper().transactions() is deprecated see this article.

Instead we need to have an unfinished type property. see this doc

It would be nice to have this included in SK1 and SK2.

Proposal

Add the new unfinished type property in SK1 and SK2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Status

    Easy, High Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions