Tip
Integrate Xsolla Mobile SDK to enable In-App Payments across mobile platforms within and outside of stores in a platform-compliant way, powered by Pay Station with over 700 payment methods.
This SDK is a set of classes and methods that you can integrate into your iOS app to work with Xsolla products. After integration, you can:
- authenticate users while keeping user data safe, secure, and under your ownership
- sell virtual goods to a worldwide audience and integrate in-app purchases
- provide users with a convenient UI to pay for in-game purchases in the game store
- manage player’s inventory based on cross-platform cloud storage
- grow and manage your community with the friend system and cross-platform player authentication
The SDK includes the following modules:
Contains methods for working with the Login API and allows you to implement the following Xsolla Login features:
- sign-up
- authentication via a device ID
- authentication via an email address or username and password
- passwordless authentication via an email address or phone number
- authentication via social networks
See the full list of supported social networks
- Amazon
- Apple
- Baidu
- Battle.net
- Discord
- GitHub
- Kakao
- MSN
- Mail.ru
- Microsoft
- Naver
- Odnoklassniki
- PayPal
- Steam
- Twitch.tv
- VK
- Vimeo
- Xbox Live
- Yahoo
- Yandex
- YouTube
- email confirmation
- password reset
- user account
- user attributes management
- friend system
Contains methods for working with the Store API and allows you to implement the following In-Game Store features:
- selling virtual items and virtual currency
- working with promotional campaigns (discounts and coupons)
Contains methods for working with the Player Inventory API and allows you to implement the following In-Game Store features:
- user inventory management
- virtual currency balance management
Allows opening payment UI via the web to use the main Xsolla Pay Station features:
- purchases for 130+ currencies
- purchases via 700+ payment methods
- built-in anti-fraud
- payment UI localized in 20 languages
- purchase refund
- iOS 12 or higher
- Swift 5
- Internet connection
Notice: The SDK is written in pure Swift. You can use it in Swift or mixed-language projects. Pure Objective-C projects are not supported.
Before you integrate:
- Install CocoaPods.
- Download and install Xcode.
- Create a new Xcode project.
- Register an Xsolla Publisher Account and set up a new project.
The library is available in CocoaPods and Swift Package Manager.
Add the following line to your Podfile
to include all SDKs for iOS at once:
pod 'XsollaSDK'
To use only specific modules, specify them in your Podfile
. For example:
pod 'XsollaSDKLoginKit'
pod 'XsollaSDKStoreKit'
To test installation, add the following line to your AppDelegate
, where <pod_name>
is the name of the installed module:
import '<pod_name>'
Check-out the API references.
API reference:
See the LICENSE file.
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 up to 5% of the amount you receive for the sale of the game and in-game goods. Contact your Account Manager to clarify the terms and conditions.