Skip to content Skip to sidebar Skip to footer

Windows 8 Store App, How Do I Test In-app Purchase?

My app is created with Javascript. I need it to support in-app purchase for feature unlocking. From the documentation, it looks really simple. However, when I tries to implement it

Solution 1:

Are you updating the WindowsStoreProxy.xml file? You have to do that otherwise the purchase will never be set to active. You don't need to call RequestAppPurchaseAsync... only the requestProductPurchaseAsync. Do this...

  • Run your app in debug mode breaking anywhere
  • Open QuickWatch (SHIFT + F9) and enter Windows.Storage.ApplicationData.current.roamingFolder.path and copy the value (mine was C:\Users\jerfost\AppData\Local\Packages\{package name}\LocalState
  • Browse to that location and open the Microsoft\Windows Store\ApiData directory
  • Open the WindowsStoreProxy.xml file in a text editor
  • Change CurrentApp/LicenseInformation/App/IsTrial to false
  • Change CurrentApp/ListingInformation/Product/MarketData/Name to your unique product name

That should do it. Hope that helps.


Post a Comment for "Windows 8 Store App, How Do I Test In-app Purchase?"