-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
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
Labels
Type
Projects
Status