CHAPTER 32

Images

Selling Upgrades

In this chapter, I show you how to use the Windows Store to sell upgrades to your users from within your app. I demonstrate how to create entries in the simulator file that describe the upgrades, how to get information about which upgrades have been purchased, and how to start the Windows Store process to purchase upgrades.

Defining the Products in the Scenario File

The technique for creating in-app upgrades starts with definitions in a scenario file. For this chapter, I have created a new file in the store folder called upgrades.xml, the contents of which you can see in Listing 1.

Listing 1. The Contents of the upgrades.xml ...

Get Pro Windows 8 Development with HTML5 and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.