Code: Select all
.completePurchase(Purchase)
Wenn jedoch ein Benutzer aufgefordert wird, einen Artikel zu kaufen, und er storniert, soll ich auch CompletePurchase anrufen?
Code: Select all
[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: 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 manually using completePurchase to avoid edge cases., {applicationUsername: null, requestData: null, quantity: 1, productIdentifier: 1, simulatesAskToBuyInSandbox: true}, null)
< /code>
Was ist die Lösung für die Handhabung, wenn:
purchases[0].status == PurchaseStatus.canceled