Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    All App Store and StoreKit fixes
    App Store
    November 15, 2026
    4 min read

    The same purchase arrives on every launch, or twice (unfinished transactions)

    If StoreKit gives your app the same purchase at every launch, that transaction was never finished. StoreKit redelivers unfinished transactions through Transaction.updates once, right after launch, until you call finish(). Deliver the content, then call transaction.finish(). Make your handler idempotent by keying on the transaction ID, because the same purchase can also reach you twice in one session.

    Symptom

    • Your Transaction.updates loop receives an old purchase every time the app starts.
    • A "Thank you for your purchase" message or a coin grant repeats at launch.
    • One purchase is processed twice: once from the purchase() result and once from the listener, or twice from a Flutter purchaseStream or a React Native purchase listener.
    • A consumable can't be bought a second time.

    Why it happens

    Cause How to tell
    finish() is never called, or only on some code paths Transaction.unfinished lists the transaction (see Confirm it)
    finish() is only called after a server call that failed Repeats happen for users with bad connections or after server errors
    The listener starts late, or a second listener also handles purchases Transactions are handled by two pieces of code, or missed at launch
    Your handler isn't idempotent The same transaction ID gets processed more than once in your logs

    Apple's documentation is specific: if your app has unfinished transactions, the updates listener receives them once, immediately after launch, and Apple tells you to start the listener as soon as the app launches or you may miss them. A transaction stays unfinished until your code calls finish().

    Wrappers have the same rule under another name. Flutter's in_app_purchase needs completePurchase for any purchase where pendingCompletePurchase is true. React Native libraries need finishTransaction.

    Confirm it

    1. List what StoreKit still considers unfinished, early in launch:
    for await result in Transaction.unfinished {
        if case .verified(let t) = result {
            print("Unfinished: id=\(t.id) product=\(t.productID) purchased=\(t.purchaseDate)")
        }
    }
    

    If the repeating purchase is in this list, it was never finished.

    1. Log the transaction ID everywhere you grant content: in the purchase() result handler and in the updates loop. The same ID appearing in both is the "twice" case.
    2. Search your code for finish() (or completePurchase / finishTransaction). Check the error branches: a return before finish() on a server error is the usual leak.

    Fix

    1. Finish every verified transaction after you've delivered it, on every path, including restores and renewals:
    func handle(_ result: VerificationResult<Transaction>) async {
        guard case .verified(let transaction) = result else { return } // never grant unverified
        if await alreadyDelivered(transaction.id) == false {
            await deliver(transaction)            // unlock, add coins, tell your server
        }
        await transaction.finish()
    }
    
    1. Make delivery idempotent: store the transaction IDs you've delivered (on your server for consumables) and skip any you've seen. This turns the "twice" case into a no-op.
    2. Start one listener at launch, in your app's initialiser, not on the paywall screen. Have the purchase() result and the listener call the same handle function.
    3. Server errors: if your server call fails, either leave the transaction unfinished on purpose so it comes back at the next launch (and handle it idempotently then), or finish it and recover from Transaction.currentEntitlements later. Pick one deliberately.
    4. Flutter: in your purchaseStream handler, call InAppPurchase.instance.completePurchase(purchase) whenever purchase.pendingCompletePurchase is true, including for errors and restores.
    5. React Native / Expo: call your library's finishTransaction after delivery, with the consumable flag set for consumables.

    Stop it coming back

    • In a debug build, log the count from Transaction.unfinished at launch. Anything other than zero after a normal session is a bug.
    • Test the interrupted path: start a purchase, kill the app at the Face ID sheet, relaunch, and check the purchase is delivered once and then finished.
    • Buy every consumable twice in testing.

    If you use BillDog

    With the iOS SDK's own purchase controller and finishTransactions left at its default (true), BillDog finishes App Store transactions for you. It starts the Transaction.updates listener inside configure, records any Transaction.unfinished at launch and on every return to the foreground, and calls finish() only after BillDog's server has recorded the purchase.

    Until then the transaction stays unfinished on purpose. If the device is offline or the server can't be reached, the SDK retries with backoff, so seeing a purchase redelivered while it retries is expected. onPurchaseCompleted fires once per purchase call, not from the listener. onCustomerInfoUpdated can repeat the same value, so make that handler idempotent.

    If you pass your own purchase controller or set finishTransactions: false, BillDog never calls finish(), and everything on this page is your code's job. This was checked against the source of the published iOS SDK 1.1.1-beta.5. It hasn't yet been reproduced on a device for this page.

    Related

    Sources

    Did this fix it?

    Frequently asked questions

    Is it safe to finish a transaction before my server has confirmed it?

    Only if you can deliver the content without the server. Once a transaction is finished, StoreKit stops redelivering it, so if your server call then fails you rely on currentEntitlements or the App Store Server API to recover it. Finishing after the server confirms is the safer default.

    Should I finish transactions that failed verification?

    Don't grant anything for them. Apple's own sample ignores unverified results. Log them, because a steady stream of unverified transactions usually means a jailbroken device or a tampered build.

    Why does the duplicate only happen for some users?

    The redelivery happens at launch for transactions that were never finished, so it hits users whose first attempt was interrupted: the app was killed, the network dropped, or your server returned an error before you called finish().

    Do I need to finish subscriptions, or only consumables?

    Every transaction, including subscriptions and renewals. A consumable that isn't finished also can't be bought again, so the problem shows up there first.

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.