Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity IAP in windows universal app (UWP)

Discussion in 'Windows' started by matt33315, Jan 20, 2016.

  1. matt33315

    matt33315

    Joined:
    Mar 28, 2014
    Posts:
    94
    I am trying to integrate the unified unity IAP into my game.

    I have found a great introduction with example code here
    http://unity3d.com/learn/tutorials/topics/analytics/integrating-unity-iap-your-game-beta

    However the example misses out the windows store.

    For example (in the code snippet at the bottom of the link) It references
    AppleAppStore.Name and
    GooglePlay.Name

    Does anyone know what the alternative for Windows Store would be? or have any examples of implementing the IAP in Windows apps?

    Thanks
    Matt
     
    junglemason and vexe like this.
  2. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    515
    Maybe use WinRT.name, i just searching also for more information about that, the documentatio is very poor.
     
  3. TheChuckster

    TheChuckster

    Joined:
    Dec 16, 2014
    Posts:
    28
    It should be in the namespace?
     
  4. vexe

    vexe

    Joined:
    May 18, 2013
    Posts:
    644
    I tried both WinRT.Name and WindowsPhone8.Name they both seemed to work from the editor but on the phone I can't seem to connect and initialize the store properly. Do I need to be signed in from the phone to a Microsoft Account/Windows Store? Documentation is indeed poor on the subject it would be nice if someone experienced on the subject pops in and drops some knowledge.
     
    IndieFist likes this.
  5. TheChuckster

    TheChuckster

    Joined:
    Dec 16, 2014
    Posts:
    28
    I'm actually about to deal with this myself as our Windows ports near completion, so if someone from Unity could chime in, it'd be very helpful. Apparently, the documentation is "still being worked on."
     
  6. nsthsn

    nsthsn

    Joined:
    Apr 29, 2013
    Posts:
    1
    I just hit this also, did anyone find out the proper name to use?
     
  7. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    515
    I can`t get working this store on windows phone. I got it on Android and Apple, but with windows phone get all time null reference on loading scene of purchases.
     
  8. laggyluk

    laggyluk

    Joined:
    Oct 7, 2011
    Posts:
    32
    this is 3rd iap plugin I'm trying to set up for wp store.. no problem with ios & android
     
    IndieFist likes this.
  9. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    515
    Soomla? I got so many errors, they speak about use only 5.1
     
  10. Shiaku

    Shiaku

    Joined:
    Jan 8, 2015
    Posts:
    7
    I've been looking for an IAP unity plugin for Windows Phone (or UAP) and didn't find a thing. Apparently, there's no way to do this for the time being. The plugins that can do IAP for Windows Phone work directly on the Visual Studio project.
     
  11. jhu78

    jhu78

    Joined:
    Dec 23, 2014
    Posts:
    19
    Shiaku likes this.
  12. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    515
    i use it to windows phone , but 8.1 and do not work.
    Anyone from Unity developers and say anything?
     
  13. shopguy

    shopguy

    Joined:
    Jan 12, 2013
    Posts:
    282
    I understand the desire for cross platform, that's why we use Unity in the first place... but if the plugins are poorly documented and likely poorly tested and hard to use... it isn't that difficult to code native support for Windows IAP. At least all the code is C#, so probably something you already know (unlike trying to do Android or ios native). I've done IAPs in 3 games now, and don't really see how a plugin would save a lot of time (unless well documented, easy to use, and supports all platforms I need, which these don't seem to do).