Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

IAPButton doesn't call OnPurchaseComplete

Discussion in 'Unity IAP' started by Kvadratt, Oct 25, 2023.

  1. Kvadratt

    Kvadratt

    Joined:
    Mar 7, 2021
    Posts:
    8
    After I've created helper script that implements IDetailedStoreListener interface, my IAPButton stopped calling its OnPurchaseComplete or OnPurchaseFailed events. It does open test window with "Buy" and "Cancel" buttons, but these buttons don't call defined methods. If I remove IDetailedStoreListener object, button returns to normal.
    My script implements ProcessPurchase method and it is actually called when I press "Buy". It also returns PurchaseProcessingResult.Complete value. Is there something else I need to add?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,129
    Yes, you need to add support posts to the support forums. Please don't use General Dicussion for support as its description states.

    I'll move your post for you.

    Thanks.
     
    Kvadratt likes this.