Search Unity

Call StoreContext.GetCustomerCollectionsIdAsync from Unity

Discussion in 'Windows' started by rewb0rn, Aug 22, 2019.

  1. rewb0rn

    rewb0rn

    Joined:
    May 17, 2016
    Posts:
    10
    Hello,

    we would like to manage purchases for the Windows Store from our servers as described here:
    https://docs.microsoft.com/en-us/windows/uwp/monetize/view-and-grant-products-from-a-service

    In order to do this we would require access to the collections Id of the user. Basically we need to call StoreContext.GetCustomerCollectionsIdAsync. We already use this approach in our non-Unity games and would like to continue using it.

    Is there a way to access this function in the Unity IAP code or from C# code directly? It seems that the Windows namespace is not available by default in our project so we can't call it ourself.

    Any help is appreciated, thanks.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,436
    rewb0rn likes this.