Set up an in-game items list

Set up an in-game items list

Manually create a catalog.json file with a list of in-game items and place it in the assets folder of your project.

Example:

Copy
Full screen
Small screen
[
   {
      "sku":"x_gun",
      "type":"virtual_good",
      "display_name":"Xsolla Blaster",
      "description":"That's quite a deadly blaster right here!",
      "image_url":"https://cdn.xsolla.net/img/misc/images/0c59a7698d4f66c1008b27ee752089b7.png",
      "price":{
            "currency": "USD",
            "amount": 12.000000
      },
      "bundle_content": null
   },
   {
      "sku":"CR1500",
      "type":"virtual_currency_package",
      "display_name":"1500 Crystals",
      "description":"Large Crystals Pack",
      "image_url":"https://cdn3.xsolla.com/img/misc/images/1d67a1d2f92d69e021a97effa692dff3.png",
      "price":{
            "currency": "USD",
            "amount": 19.990000
      },
      "bundle_content":{
            "currency": "Crystal",
            "quantity": 1500.000000
      }
   }
]

Set the bundle_content field to null for virtual items. For virtual currency packages, in the bundle_content field, specify the name of the virtual currency in the currency parameter and the amount of virtual currency in the package in the quantity parameter (see the example above).

Note:
For each item, the sku parameter value must be the same as the identifier of the item in your game catalog and SKU of the virtual item specified in Publisher Account.

Continue reading