Monday, 15 February 2010

c# - How to implement in-app purchases in a Windows Store App -


I was thinking that in-app purchases are actually implemented in the Windows Store app (i.e., not Windows Phone) Just because I 've seen online and on Microsoft's tutorials and I did not find anything that takes me to the advantage.

I used Unity to develop my game and then exported a Windows Store 8.1 file. In particular, I have an event executed in my Unity code which is the menus. XML is connected to a method in the CS file that is used in Visual Studio (I'm running Express 2013 for Windows), the actual method is being executed, but when I request the purchase of a product like the method , Then I get an error:

  // This is assigned to the event that is called in the Unity "Get points" button is pressed as the private async zero purchase point (Object Arg) {// GameManager GameObject Search UnityEngine.GameObject gameManager = UnityEngine.GameObject.FindGameObjectWithTag ("GameManager"); // Get the script associated with it Game Manager gamemanager script = gamemanager. GetComponent & lt; GameManager & gt; (); // Get license information for this app Windows.ApplicationModel.Store.LicenseInformation licenseInformation = Windows.ApplicationModel.Store.CurrentAppSimulator.LicenseInformation; If (License Information: Product Lexus ["Sector Defence_BanksA 250"]. Aactive) {Wait. Windows appellation model Store Custom Apps Simulator RequestpointPurchase ASINCCC ("SectorDefense_bimbs_ 250"); GameManagerScript.playerScore + = 250; }}  

I am confused in this way how to implement this kind of functionality.

I have made sure to see WindowsStoreProxy

Any help is appreciated!

Thank you in advance.

No need for hard coding, here's the easiest way to implement in-app purchases for any app. Visit this link and download the plugin for free. Microsoft Store Plugin -


No comments:

Post a Comment