| commit | 0ac7a032dbcd4a6b05e52b54183ffa2c98c44dfa | [log] [tgz] |
|---|---|---|
| author | Haidar Mehsen <49842031+Haidar0096@users.noreply.github.com> | Fri Dec 12 00:44:20 2025 +0200 |
| committer | GitHub <noreply@github.com> | Thu Dec 11 22:44:20 2025 +0000 |
| tree | 59996e0ca04d7302f79f72db5257cb7e93ebd403 | |
| parent | 36383d6b0cd41f54bceea788f844c7c2ec93044d [diff] |
[in_app_purchase_storekit] Add Transaction.unfinished API and expose appAccountToken (#10439) ## Summary Adds two new StoreKit 2 features to `in_app_purchase_storekit`: - `SK2Transaction.unfinishedTransactions()` - Queries only unfinished transactions for better performance - `SK2PurchaseDetails.appAccountToken` - Exposes user UUID for backend integration ## Motivation 1. **Performance:** Developers often only need unfinished transactions to complete them, not all historical transactions. This mirrors Apple's official `Transaction.unfinished` API. 2. **User Identification:** The ability to set `appAccountToken` already exists when making purchases, but reading it back from transaction details was missing. ## Changes - Added pigeon interface method for `unfinishedTransactions()` - Implemented Swift native code using Apple's `Transaction.unfinished` API - Exposed `appAccountToken` property in `SK2PurchaseDetails` - Added unit tests for both features ## Breaking Changes None. Both features are additive and maintain full backward compatibility.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: