Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

"In-App purchase has already been bought" after an UserCancelled

Discussion in 'Unity IAP' started by damelin2, Sep 19, 2017.

  1. damelin2

    damelin2

    Joined:
    Jan 8, 2013
    Posts:
    19
    • Description of your issue
      Purchases failed with "This In-App purchase has already been bought. It will be restore for free" after user has cancelled a consumable purchase.

      In IAP Demo scene, on device:

      1. Execute a purchase normally, must succeed.
      2. Try to purchase that same item, but press "Cancel" on native UI popup instead of enterring your password.
      3. Try to purchase that same item, normally with your password (same as step 1)

      Notice the error (DuplicateTransaction)

      I can see this log: DuplicateTransaction error with product ca.xx.yy.zzz and transactionId 100000033xxxxx

      Where 100000033xxxxx, was a successful transaction Id I did earlier.

    • Your purchasing script
      • Was using IAPDemo
    • Unity Version
      • v5.6.3p1
    • Unity IAP version
      • v1.13.3
    • Platform you are building for
      • iOS 11