You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return success instead of error when transaction not found in finish()
If a transaction is not found in Transaction.unfinished, it means the transaction has already been finished. This should be treated as a success case rather than an error, since the desired outcome (transaction completed) has been achieved.
This ensures that calling completePurchase() multiple times or on already-finished transactions works correctly, allowing consumable products to be repurchased.
Copy file name to clipboardExpand all lines: packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift
Copy file name to clipboardExpand all lines: packages/in_app_purchase/in_app_purchase_storekit/example/shared/RunnerTests/InAppPurchaseStoreKit2PluginTests.swift
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -415,19 +415,18 @@ final class InAppPurchase2PluginTests: XCTestCase {
0 commit comments