Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xsolla SDK for Windows

License Latest release .NET 6+ C++ License

Pre-built native SDKs for integrating in-game payments into your Windows app via Xsolla Pay Station.

SDK Explorer

See exactly how payments work before writing a single line of code. The SDK Explorer lets you walk through authentication, catalog loading, purchasing, and finalization — all in an interactive environment.

SDK Explorer — interactive demo of Xsolla SDK payment flow

Integrate Now →

Essential Links

Overview

Xsolla SDK for Windows provides native C# and C++ libraries for in-game purchases via Xsolla Pay Station. Both SDKs share the same backend infrastructure and offer equivalent functionality.

Key features:

  • 1000+ payment methods across 200+ geographies
  • 130+ currencies including local and alternative payment methods
  • Built-in anti-fraud protection
  • 25+ languages supported out of the box
  • Player authentication (Xsolla Login widget, social login, custom tokens)
  • Product catalog and virtual items

SDKs

SDK Platforms Distribution
C# SDK .NET 6, 7, 8, 9 + .NET Standard 2.1 com.xsolla.sdk-csharp-{version}.zip
C++ SDK Windows x64 (MSVC) com.xsolla.sdk-cpp-{version}.zip (coming soon)

Download the latest release ZIP from GitHub Releases.

C# SDK

Requirements

  • .NET 6.0 or later (or .NET Standard 2.1 compatible runtime)

Installation

  1. Download com.xsolla.sdk-csharp-{version}.zip from Releases
  2. Extract the ZIP — DLLs are organized by framework under lib/
  3. Reference the XsollaCSharpSDK.dll matching your target framework

Quick Start

1. Configure and create the store client

using Xsolla.SDK.Common;
using Xsolla.SDK.Store;

var settings = XsollaClientSettings.Builder.Create()
    .SetProjectId(YOUR_PROJECT_ID)
    .SetLoginId("YOUR_LOGIN_ID")
    .Build();

var configuration = XsollaClientConfiguration.Builder.Create()
    .SetSettings(settings)
    .SetSandbox(true)
    .Build();

var storeClient = XsollaStoreClient.Builder.Create()
    .SetConfiguration(configuration)
    .AddProducts(new[] { "booster_max_1", "key_1", "premium_3" })
    .SetOnRestore(OnPurchase)
    .Build();

2. Initialize and fetch products

storeClient.Initialize((products, error) =>
{
    if (error != null)
    {
        Console.WriteLine($"Init failed: {error.message}");
        return;
    }

    foreach (var product in products)
        Console.WriteLine($"{product.sku}: {product.formattedPrice}");
});

3. Purchase a product

storeClient.PurchaseProduct("key_1", (purchasedProduct, error) =>
{
    if (error != null)
    {
        Console.WriteLine($"Purchase failed: {error.message}");
        return;
    }

    // Validate the purchase
    storeClient.ValidatePurchase(purchasedProduct.ToReceipt(), (success, err) =>
    {
        if (success)
        {
            // Award the item, then consume
            storeClient.ConsumeProduct(
                purchasedProduct.sku,
                purchasedProduct.quantity,
                purchasedProduct.transactionId,
                consumeError => { /* handle */ });
        }
    });
});

C++ SDK

Coming soon.

License

Apache License 2.0 — Copyright 2026 Xsolla Inc.

Support

License

Apache 2.0 License. See LICENSE.

About

Official Xsolla SDK for Windows. Designed for desktop game development, keeping players inside your game while handling login, storefront, and checkout natively. Docs: https://developers.xsolla.com/sdk/

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors