How to create site for free-to-play game

How it works

Free-to-play is a business model for distribution of computer and mobile games, which allows the user to play without having to pay for it. The main way to monetize free-to-play games is through in-game purchases. Many popular and commercially successful games currently use free-to-play monetization. Site Builder allows you to monetize a game through selling the following items on the game’s site:

  • virtual currency packs
  • virtual items
  • subscriptions

You can sell in-game items using a store on the site or create a site with the top-up solution.

User flow

Flow for site with store

  1. The user goes to the free-to-play game’s site and navigates to the store section.

  1. The user selects items to buy. The purchase payment process depends on:
  2. The user sees purchased items in their game account.

Purchase of different quantity of items

  • Single item. To buy a single item, the user clicks Buy Now and pays for the purchase in the payment UI.

  • Multiple items. To buy multiple items, the gamer clicks the cart icon and adds the item to a shopping cart. After selecting all the items, the gamer goes to the shopping cart, clicks Go to checkout and pays for the purchase in the payment UI.

Purchase of different item types

  • To buy a virtual item, the user needs to log in to the site. After the user is logged in, the system can start the payment process depending on the type of currency the item is sold for.
  • To buy a virtual currency pack, the user needs to log in to the site. After the user is logged in, the system can start charging virtual currency to the user balance and subtracting from it.

Virtual items that are priced in virtual currency cannot be added to the shopping cart. After clicking the Buy Now button, money is subtracted from the user balance automatically.

Flow for site with top-up feature

  1. The user goes to the site where the top-up solution is implemented.
  2. The user enters their ID from the game in a special field.
  3. The user chooses items and proceeds to the payment step.
  4. The user chooses a payment method and pays for the items.

After the user has chosen a payment method, Xsolla sends a validation webhook to verify the user ID is valid. If the validation is passed, the user can proceed with the payment. Otherwise, the user receives an error message. If the payment is successful, Xsolla sends you a webhook about the successful payment.

  1. The user sees the purchased goods in their account in the game.

How to get it


  1. Sign up for Publisher Account.
  2. Configure a Publisher Account project. The first project is automatically created after you sign up for an account.
  3. Create a site with one of the following templates:
    • Store. Allows you to create a store on the site with in-game items and sell them via shopping cart.
    • Top-up page. Allows you to sell in-game items via the user ID from the game.

Integration flow

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!
Last updated: December 29, 2021

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!