Search Issue Tracker

Active

Votes

10

Found in

Issue ID

952990

Regression

No

Different behaviour when trying to buy pending item on Google Play and App Store.

IAP

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 0Severity not yet defined

Reported in forum: https://forum.unity.com/threads/different-behaviour-when-trying-to-buy-pending-item-on-google-play-and-app-store.496458/

Buy a Consumable product and return PurchaseProcessingResult.Pending in ProcessPurchase(), then buy it again:
1. Google Play: OnPurchaseFailed is called with DuplicateTransaction reason.
2. App Store: User is prompted with Apple Store UI with "This In-App purchase has already been bought. It will be restored for free", and nothing gets called in IStoreListener.

Comments (5)

  1. B48292c030f5e4d72b613d3e3538890b?d=mm

    aangelov

    Dec 10, 2018 20:13

    Hello guys,

    Same issue here.
    @Purerockets
    On AppStore, I would expect "OnPurchaseFailed" to be called once the "This In-App purchase has already been bought. It will be restored for free" dialog is dismissed.

  2. 0d6ce4da39ddec8b64efda068a37891b?d=mm

    PureRockets

    Jun 26, 2018 22:14

    A duplicate transaction would be expected. If the second transaction succeeded, wouldn't you then have an orphaned transaction left in pending? What is the expected behavior that you would ideally like to see? Currently if you restart the app, you'll get the ProcessPurchase call again for the pending transaction. However, we understand that developers might want a solution that doesn't require an app restart.

  3. 54bca8778794c761d4658da336a3130c?d=mm

    ZzappSizzler

    Apr 03, 2018 22:39

    Clearing the AppStore cache used to work. Now in iOS 10 I haven’t found how to clear the AppStore cache.

  4. 08a0480e370cdc9ecdef200bfeb12589?d=mm

    hantengx

    Jan 04, 2018 08:36

    I have same issue, Does anyone have a solution?

  5. 4cbe4cd1fc5006592521cf5f49a44da0?d=mm

    parker87tinh

    Dec 21, 2017 03:36

    Hello,
    Yes, I also facing this issue for a long time on App Store. it happened when I use same IAPDemo.cs with receipt validation.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.