Enterprise-level SDK for Cocos Creator

Easily embed Xsolla services with this ready-to-use library for games developed using Cocos Creator.

The SDK makes it easier to integrate Xsolla products into your Cocos Creator project by providing out-of-the-box data structures and methods for working with Xsolla API. After integration, you can use:

  • Login to authenticate users and manage user accounts.
  • In-Game Store to manage in-game purchases in your application.
  • Pay Station to set up payments.
  • Subscriptions to provide users with access to a package of services under specified conditions (subscription cost and duration).

Integrate

View sample scripts for main scenarios

Features

Authentication

  • OAuth 2.0 protocol-based authentication.
  • Classic login via username/email and password.
  • Social login.
  • Login via a device ID.
  • Passwordless login via a one-time code or a link sent via SMS or email.

Learn more

User management

  • User attributes to manage additional information.
  • User account.
  • Secure Xsolla storage for user data. Alternatively, you can connect PlayFab, Firebase, or your own custom storage.

Learn more

Catalog

  • Virtual currency:
    • Sell virtual currency in any amount or in packages (for real money or other virtual currency).
    • Sell hard currency (for real money only).
  • Virtual items:
    • Set up a catalog of in-game items.
    • Sell virtual items for real and virtual currency.
  • Bundles:
    • Sell bundles for real or virtual currency.
  • Promotional campaigns:
    • Reward users with virtual currency packages, game keys, or virtual items for coupons.
    • Give users bonuses or discount on items in the cart with promo codes.

Learn more

Item purchase

  • Sell items in one click or via the shopping cart.
  • Provide users with a convenient payment UI. The main features are:
    • 700+ payment methods in 200+ countries, including bank cards, digital wallets, mobile payments, cash kiosks, gift cards, and special offers.
    • 130+ currencies.
    • UI localized into 20+ languages.
    • Desktop and mobile versions.

Learn more

Player inventory

  • Get and verify an inventory.
  • Consume items according to the in-game logic.
  • Consume virtual currency according to the in-game logic (for example, when opening a location or purchasing level for some currency).
  • Synchronize all purchases and premium rewards of the user across all platforms.

Learn more

Subscriptions

  • Selling subscriptions.
  • Subscription renewal and cancelation.
  • Subscription management from a user’s dashboard.

Learn more

Requirements

System requirements

  • 64-bit OS
  • Windows 7 and higher
  • macOS 10.9 and higher
  • Minimum supported version of Cocos Creator — 3.3.1

Target OS

  • Android
  • iOS
  • HTML5
  • WeChat Mini Games

The SDK uses Google Mobile Services and doesn’t support builds for devices without Google Mobile Services, such as Huawei.

Charge policy

Xsolla offers the necessary tools to help you build and grow your gaming business, including personalized support at every stage. The terms of payment are determined by the contract that can be signed via Publisher Account.

The cost of using all Xsolla products is 5% of the amount you receive for the sale of the game and in-game goods via Xsolla Pay Station. If you do not use Xsolla Pay Station in your application, but use other products, contact your Customer Success Manager or email csm@xsolla.com to clarify the terms and conditions.

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.
Last updated: October 7, 2024

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!