Skip to content

In App Purchase Listener: Delivers no purchases and therefore not completable (iOS). PlatformException(storekit_duplicate_product_object, There is a pending transaction for the same product identifier #60763

@ndhbr

Description

@ndhbr

Steps to Reproduce

  1. Create an App using IAP-Plugin
  2. Buy a non-consumable in iOS in Sandbox-Mode

Expected results: Purchase-Listener receives the purchase and I can close it with completePurchase.

Actual results: Purchase-Listener receives no purchase and therefore I cannot complete the purchase.
It works on Android. I have the purchase listener right at the beginning of the main class of the app.
If I try to buy again I get the following message:

Error-Message
PlatformException(storekit_duplicate_product_object, There is a pending transaction for the same product identifier. Please either wait for it to be finished or finish it manuelly using `completePurchase` to avoid edge cases., {applicationUsername: null, requestData: null, quantity: 1, productIdentifier: premium, simulatesAskToBuyInSandbox: true})
flutter doctor -v
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.15.2 19C39d, locale de-DE)
    • Flutter version 1.17.4 at /Users/andreashuber/Flutter/flutter
    • Framework revision 1ad9baa8b9 (2 weeks ago), 2020-06-17 14:41:16 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/andreashuber/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.8.4

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.46.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.1

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.p: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyr: 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