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

Codeless IAP with IAP Promo?

Discussion in 'Unity IAP' started by melchior82, Feb 21, 2019.

  1. melchior82

    melchior82

    Joined:
    Jul 11, 2013
    Posts:
    1
    Hi,

    I am stuck on integrating IAP Promo with codeless IAP.

    How do I process purchasing results with codeless IAP when it is not using a button? I add the IAP Listener to the scene, and then have multiple IAP Promo products.

    I can add a function to the On Purchase Complete (Product) list, but the product ID does not get passed, so how do I process the different product IDs from my promo?

    I have a generic "Grant Gold" method like in the tutorial documentation. When I use the codeless IAP button, I can run the Grant Gold method and pass the amount to it for that specific button. Documentation doesn't say how to use IAP listener with Promo specific product IDs.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You first want to ensure that IAP is working separately. IAP Promo uses the same product list. Is IAP working for you when using the IAP button? To get the product info, you would need to view and modify the listener script anyway, so you might reconsider using Codeless.