Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Unity IAP - Restore Purchases doesn't work if there's no items to restore

Discussion in 'Unity IAP' started by Sim91, Jun 22, 2023.

  1. Sim91

    Sim91

    Joined:
    Feb 10, 2021
    Posts:
    3
    I'm testing my iOS app through Xcode with 2 Sandbox users.
    • The user A bought one item from the store and when I call the RestorePurchases() method it restores the item following the procedure (calling ProcessPurchase() method). It works perfectly!
    • The user B doesn't have any product in its history (never bought any item from the application) but when I call the RestorePurchases() methods it stuck, basically the ProcessPurchase() never gets called.
    The Xcode log has no relevant information but
    UnityIAP: PaymentQueueRestoreCompletedTransactionsFinished

    It looks like that method doesn't trigger the ProcessPurchase(). Am I missing something?
     
    Last edited: Jun 22, 2023
  2. Sim91

    Sim91

    Joined:
    Feb 10, 2021
    Posts:
    3