Search Unity

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

Question UDP server purchase validation using Unity IAP

Discussion in 'Unity Distribution Portal (UDP)' started by jmanas, Nov 25, 2021.

  1. jmanas

    jmanas

    Joined:
    May 7, 2019
    Posts:
    2
    Hi everyone,

    I'm implementing UDP purchases using Unity IAP and everything works as expected until I get to the server validation process.

    Theres some purchase information required to proceed with the UDP validation that I don't have access from Unity IAP purchasing flow since I'm making use of ProcessPurchase method instead of OnPurchase, which would normally get the PurchaseInfo needed to proceed with the validation.

    Is there a way to have access to PurchaseInfo when processing the purchases with Unity IAP?

    Thanks in advance!
     
  2. jmanas

    jmanas

    Joined:
    May 7, 2019
    Posts:
    2
    I've just found out that information can be found inside the product receipt coming from ProcessPruchase :)