Xsolla SDK for Unity - Web
Xsolla SDK for Unity is an evolution of the enterprise-level Xsolla SDK solution, which was designed for integration into large-scale projects.
This guide helps you integrate the Xsolla SDK for Unity to start accepting payments in your Unity game on Web. By the end, you'll have a fully functioning payment system in your game and experience firsthand how Xsolla streamlines monetization.
Let's dive in and get your game ready to accept payments in just a few easy steps!
Quick start
This quick start guide makes it simple to integrate the Xsolla SDK for Unity on Web and start accepting payments in your Unity game. We'll use a pre-configured test project to cover all the essentials: setting up basic user authentication, importing your products (SKUs), and processing a test payment.
For detailed instructions, please refer to the Quick Start Guide.
Setting up a Publisher Account
Before you begin integrating Xsolla SDK into your game, you'll need to register a Publisher Account.
The Publisher Account is the primary tool for configuring Xsolla features, working with analytics and transactions similar to Google Play Console and App Store Connect for SKU management.
You'll need to have an active Publisher Account to obtain a Project ID you'd use throughout the whole SDK integration process.
For detailed instructions, please refer to Setting up a Publisher Account.
Install the SDK
Now that you've set up your Publisher Account, the next step is to install the Xsolla SDK for Unity plugin in your Unity project.
For detailed installation instructions, see the Installation Guide.
Configure the SDK
Once you've installed the SDK, the next step is configuration.
For detailed instructions, please refer to the Configuration Guide.
Using a device ID to log in is not supported on the Web platform. You must provide an access token instead. For more information, please refer to Authentication via custom ID
Alternatively, you can use the Delayed configuration feature to postpone SDK initialization until an access token is obtained.