Game Development Reference
In-Depth Information
You can have multiples of these nodes, one for each IAP product that you want to
provide to your players. Similar to our app we will provide information about the price
and market currency, although we don't need to provide much more than that, just
the ProductId inside the Product tag, which represents the ID we provide when
requesting a purchase or looking up the details.
The final section is the LicenseInformation , which allows us to set up some pre-
conditions that help test our game in situations where the player is running a trial (or
an expired trial) versus the full version, or a situation where the player already has
IAP products purchased and valid on startup.
Just like the ListingInformation elements, there are App and Product nodes
in this; however, the amount of information required is heavily reduced. For the app
description we just need to indicate if this is a trial, and if the license is active, as
described earlier. This is shown in the following piece of code:
<App>
<IsActive>true</IsActive>
<IsTrial>false</IsTrial>
</App>
The Product node is just as simple:
<Product ProductId="product1">
<IsActive>true</IsActive>
<ExpirationDate>2014-01-01T00:00:00.00Z</ExpirationDate>
</Product>
As you can see you just need to provide an ID to associate with the listing, and then
the values for IsActive and the ExpirationDate . The expiration value is option-
al, so if you have a product that doesn't expire you don't need to include a value.
Search WWH ::




Custom Search