Get started

Serverless integration allows you to use Xsolla Pay Station to process purchases in games where all the game logic is implemented on the client side and the server part is missing. With this integration, you do not need to configure webhooks.

Limitations:

  • A short list of payment systems that is optimal for this type of integration is used.
  • In the payment interface, inventory, payment history, and balance, working with saved billing accounts and subscriptions are not available.

System requirements

  • Android OS 5.0 or higher
  • Internet connection is essential for Android SDKs

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 the Xsolla Pay Station. If you do not use the Xsolla Pay Station in your application, but use other products, contact your Account Manager to clarify the terms and conditions.

Prerequisites

Before integrating the Payments Android SDK, follow these steps:

  1. Download and install Android Studio.
  2. Create a new project.
  3. Register an Xsolla Publisher Account.
  4. Configure a Publisher Account project that is automatically created after the previous step:
    1. Click My game in the Projects block and go to Project settings.
    2. In setup mode, specify a Project name and click Save.

    1. Go to Integration settings and check that the Integrate Commerce API toggle is set to Off.

    1. Select the Serverless integration option.
    2. Click Save.

If you want to change the settings of a project that you already created earlier in your Publisher Account:

  1. Go to your project.
  2. Disable all modules except Virtual Items.
  3. Go to Project settings > Integration settings and check that the Integrate Commerce API toggle is set to Off.
  4. Select the Serverless integration option.
  5. Click Save.

During the integration process you will need the Project ID found in Publisher Account > Project settings > Project ID.

Demo

We provide the Xsolla Sample App to demonstrate the integration capabilities and functions of SDKs. Use it as an example.

For the demo app, a project in Publisher Account is preset and an in-game store is fully configured. When you launch the demo app, the sign-up/login page is displayed. Sign up in the app or log in with a demo account (username — xsolla, password — xsolla).

Integration flow

To integrate the Payments Android SDK:

  1. Set up the Virtual Items module in your Publisher Account.
  2. Install the library.
  3. Set up a JSON file with a list of in-game items.
  4. Get access data.
  5. Configure Return URL.
  6. Set up event processing and SDK methods.

After the integration is complete, test the payment process.

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.

Continue reading