Unity IAP in windows universal app (UWP)

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

2 Likes

Maybe use WinRT.name, i just searching also for more information about that, the documentatio is very poor.

It should be in the namespace?

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.

1 Like

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.”

I just hit this also, did anyone find out the proper name to use?

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.

this is 3rd iap plugin I’m trying to set up for wp store… no problem with ios & android

1 Like

Soomla? I got so many errors, they speak about use only 5.1

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.

I got it to work for Windows 10 (PC and Mobile) with this plugin: Unity Plugins

1 Like

i use it to windows phone , but 8.1 and do not work.
Anyone from Unity developers and say anything?

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).