Integrate store into game
Xsolla In-Game Store allows you to sell the following items for real or virtual currency:
- in-game currency and currency packages
- consumable items
- nonconsumable items
- time-limited items
Note
Refer to the Virtual items documentation for detailed information about the different types of virtual items.
To add store to your game:
Note
To call the Xsolla API, you can use the ready-made SDK methods for game engines and platforms:
Display of items catalog
Implement a display of items catalog via In-Game Store & Buy Button API calls:
Task | API |
---|---|
To display a complete list of virtual items added to your Store | Get virtual items list |
To display a list of groups of virtual items available for sale on the client side | Get item groups list |
To get a list of virtual currencies available for sale in your Store on the client side | Get virtual currency list |
To display a complete list of virtual currency packages added to your Store on the client side | Get virtual currency package list |
To display a complete list of virtual currency bundles added to your Store | Get list of bundles |
Selling items
You can sell items in the following ways:
- Fast purchase of one item. In this case, you can sell one item in any quantity. For example, 100 identical potions. To set up this option, add a purchase button to the application interface that calls the method for getting the token when you click it.
- Buying a cart. In this case, the player can pre-fill a cart, add or remove items from the cart, or change their quantities. To set up this option, refer to the documentation on the In-Game Store product.
Get user order status
You can use the following ways to get a user’s order status:
- On the server side, via webhooks.
- On the client side, via WebSocket API or In-Game Store & Buy Button API.
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Rate this page
Rate this page
Don’t want to answer
Thank you for your feedback!
Continue reading
Next step
Set up webhooksFound a typo or other text error? Select the text and press Ctrl+Enter.