[in_app_purchase] There is a pending transaction for the same product identifier

This issue has been created since 2022-11-23.

This issue was closed, but not resolved.

The method offered is to add this:

      final transactions = await SKPaymentQueueWrapper().transactions();
      transactions.forEach((transaction) async {
        await SKPaymentQueueWrapper().finishTransaction(transaction);
      });

However, SKPaymentQueueWrapper is not exposed by the lib.
How do we handle this issue?

exaby73 wrote this answer on 2022-11-24

Hello @agordeev. SKPaymentQueueWrapper is exposed by in_app_purchase_storekit here. You can add this package as a dependency and import it from there. Do remember to only call this on iOS and not other platforms as it may throw an error. Does this solve your issue?

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-12-10
Star Count 147243
Watcher Count 3561
Fork Count 23950
Issue Count 11325

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Focus flickity on mount 8 2020-02-12 2022-10-04
requirements file missing 1 2022-04-09 2022-04-03
Support .Net Framework 4.5 0 2022-02-08 2022-05-27
should `control sortmode` be file-level or global? 10 2022-06-30 2022-11-18
MacroCompiler - Add way to exclude Assemblies 1 2022-03-21 2022-10-08
TTS Server only mode? 5 2021-08-01 2022-10-31
Incorrect distribute amount when stake triggers rebase 0 2022-01-15 2022-10-04
Regression with NotificationCCReport logging 0 2022-08-05 2022-09-24
Instead of ports can kiauh user host names? 4 2021-09-15 2022-10-02
Focusrite Scarlet Solo 3 Input Output Pass Through Example 1 2021-08-15 2022-11-26
Support for policy templating 3 2021-10-11 2022-09-23
Get the following error when executing GtkBuilder(buffer=aString) 1 2022-03-05 2022-11-18
404 - Adversary Emulation Summary page 1 2021-02-15 2022-10-30
https://attackevals.mitre.org/methodology/round2/detection-categories.html 404 1 2021-09-13 2022-10-30
404 - link to SANS presentation 2 2021-02-15 2022-10-30
WiX v4 VS Intellisense Anamoly 4 2022-11-28 2022-12-03
Row ID generation needs to be improved 0 2021-09-16 2022-10-08
Spotdl is not recognized as internal or external command 1 2022-02-03 2022-10-03
TLS Options cannot be configured 1 2022-05-12 2022-12-03
Format of authtoken? 1 2021-04-12 2022-12-03
ERROR: 400: Invalid Input - invalid - Chrome browser management 5 2021-10-21 2022-11-12
Hairpin dash settings broken - causing invisibility 2 2022-09-12 2022-11-15
Help understanding problem rendering pdf with plumber 2 2022-04-24 2022-11-22
[Big Sur] Failed to suppress screen saver resulting in ESOCKETTIMEDOUT 1 2021-06-02 2022-11-28
Incorrect Usage example 1 2021-06-01 2022-08-11
Docker errors for 1.5.2 and 1.5.3 Faktory server 5 2021-07-19 2022-11-09
github-ci: failed to build FreeBSD 12 on Github Actions hosts based on OSX 1 2021-02-14 2022-11-27
add carthage instructions to documentation 3 2017-05-03 2022-12-01
serverless deploy working on mac, not windows - No file matches include / exclude patterns 3 2022-11-11 2022-11-30
Error on https://armorgames.com/play/5885/castaway 1 2022-12-06 2022-12-08
Error on https://sexflashgame.org/wp-content/games/nintendo-christmas/index.php 1 2022-12-06 2022-12-08
Error on https://files.twoplayergames.org/files/games/ruffle/player.html 1 2022-12-07 2022-12-08
Error on https://archive.org/details/flash_supermario63 1 2022-12-07 2022-12-08
Error on https://bgs.pages.dev/g/gfiles/gfiles/flash/ 2 2022-12-06 2022-12-08
[Adaptive Cards - Inputs.Json]: Keyboard outline focus is lost while navigating to 'FlightDetails.Json' using Up/Down key. 0 2022-02-08 2022-12-09
Enable PHP8.0 for Windows in CI 1 2021-03-26 2022-09-20
useSelector stopped firing all of a sudden 0 2021-11-03 2022-10-26
dependency resolver doesn't consider no-git apps 1 2022-07-22 2022-12-02
Warning with LWMEM_CFG_CLEAN_MEMORY and accompanying LWMEM_MEMSET call 3 2022-05-04 2022-10-20
Vulnerability to SWEET32 ciphersuite 1 2021-10-22 2022-09-20
Releases failing randomly with agent error "Unhandled exception happened in worker" 12 2022-06-02 2022-11-20
Update active maintainers 0 2021-06-02 2022-11-12
[BUG] Explain does not show the DSL Query- Broken Feature 2 2022-07-14 2022-10-15
How to use EconML when we don't know how to distinguish between X and W? 4 2022-07-20 2022-11-30
cypress cache prune does not recognise versions 10.x as being higher than v9.7.0 2 2022-07-18 2022-11-19
chore(upstream): Upstream latest batch of changes from Netflix 1 2021-08-21 2022-11-12
React app with Typescript failes to find the component interfaces 3 2021-11-30 2022-10-01
Too few arguments to function App\Nova\AbstractResource::__construct(), 0 passed in 2 2022-06-15 2022-11-18
Tailwind CSS does not generate all 3rd part components classes 0 2022-05-24 2022-12-07
fxFlexOrder.gt-md only applies first time 5 2020-09-09 2022-11-14