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:

  1. Implement the display of items catalog.
  2. Implement the logic for selling items.

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:

TaskAPI
To display a complete list of virtual items added to your StoreGet virtual items list
To display a list of groups of virtual items available for sale on the client sideGet item groups list
To get a list of virtual currencies available for sale in your Store on the client sideGet virtual currency list
To display a complete list of virtual currency packages added to your Store on the client sideGet virtual currency package list
To display a complete list of virtual currency bundles added to your StoreGet 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:

Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
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
Is there anything we can improve?

Don’t want to answer

Thank you for your feedback!

Continue reading

Last updated: December 22, 2022

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!