UXsollaStoreSubsystem

Inherits from UGameInstanceSubsystem

Public Functions

Name
UXsollaStoreSubsystem ()
virtual voidInitialize (FSubsystemCollectionBase & Collection) override
virtual voidDeinitialize () override
voidInitialize (const FString & InProjectId)
Initializes the controller with the provided Project ID (used to override project settings).
voidGetPaginatedVirtualItems (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnStoreItemsUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0, const FString & AuthToken =TEXT(""))
Returns a list of virtual items according to pagination settings.
voidGetVirtualItems (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnStoreItemsUpdate & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT(""))
Returns a full list of virtual items.
voidGetItemGroups (const FString & PromoCode, const FOnItemGroupsUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a full list of virtual item groups.
voidGetPaginatedVirtualCurrencies (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnVirtualCurrenciesUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0)
Returns a list of virtual currencies according to pagination settings.
voidGetVirtualCurrencies (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnVirtualCurrenciesUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a full list of virtual currencies.
voidGetPaginatedVirtualCurrencyPackages (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnVirtualCurrencyPackagesUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0, const FString & AuthToken =TEXT(""))
Returns a list of virtual currency packages according to pagination settings.
voidGetVirtualCurrencyPackages (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnVirtualCurrencyPackagesUpdate & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT(""))
Returns a full list of virtual currency packages.
voidGetPaginatedItemsListBySpecifiedGroup (const FString & ExternalId, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGetItemsListBySpecifiedGroup & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0, const FString & AuthToken =TEXT(""))
Returns a list of items for the specified group according to pagination settings.
voidGetItemsListBySpecifiedGroup (const FString & ExternalId, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGetItemsListBySpecifiedGroup & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT(""))
Returns a full list of items for the specified group.
voidGetAllItemsList (const FString & Locale, const FOnGetItemsList & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT(""))
Returns a full list of virtual items.
voidFetchPaymentToken (const FString & AuthToken, const FString & ItemSKU, const FOnFetchTokenSuccess & SuccessCallback, const FOnError & ErrorCallback, const FXsollaPaymentTokenRequestPayload & PurchaseParams)
Creates an order for the specified item and returns the payment token and order ID.
voidFetchCartPaymentToken (const FString & AuthToken, const FString & CartId, const FOnFetchTokenSuccess & SuccessCallback, const FOnError & ErrorCallback, const FXsollaPaymentTokenRequestPayload & PurchaseParams)
Creates an order with items from the cart with the specified ID or from the cart of the current user.
voidLaunchPaymentConsole (UObject * WorldContextObject, const int32 OrderId, const FString & AccessToken, const FOnStoreSuccessPayment & SuccessCallback, const FOnError & ErrorCallback, const FOnStoreBrowserClosed & BrowserClosedCallback, const EXsollaPayStationVersion PayStationVersion =EXsollaPayStationVersion::v4)
Opens payment UI for the provided payment token.
voidPurchaseItemBySku (const FString & AuthToken, const FString & ItemSKU, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback, const FOnStoreBrowserClosed & BrowserClosedCallback)
Initiates purchase for specified item SKU.
voidPurchaseCart (const FString & AuthToken, const FString & CartId, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback, const FOnStoreBrowserClosed & BrowserClosedCallback)
Initiates the purchase process for the cart with the specified ID or for the cart of the current user.
voidPurchaseFreeCart (const FString & AuthToken, const FString & CartId, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback)
Initiates the purchase process for the free cart with the specified ID or for the free cart of the current user.
voidCheckOrder (const FString & AuthToken, const int32 OrderId, const FOnCheckOrder & SuccessCallback, const FOnError & ErrorCallback)
Checks pending order status by its ID.
voidCheckPendingOrder (const FString & AccessToken, const int32 OrderId, const FOnStoreSuccessPayment & SuccessCallback, const FOnError & ErrorCallback, bool bIsUserInvolvedToPayment =false)
Checks pending order.
voidCreateOrderWithSpecifiedFreeItem (const FString & AuthToken, const FString & ItemSKU, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback, const int32 Quantity =1)
Create order with specified free item.
voidCreateOrderWithFreeCart (const FString & AuthToken, const FString & CartId, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback)
Create order with free cart.
voidPurchaseStoreItem (const FString & AuthToken, const FStoreItem & StoreItem, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback)
Initiates purchase process for specified store item.
voidPurchaseCurrencyPackage (const FString & AuthToken, const FVirtualCurrencyPackage & CurrencyPackage, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback)
Initiate purchase process for specified currency package.
voidPurchaseBundle (const FString & AuthToken, const FStoreBundle & Bundle, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback)
Initiate purchase process for specified bundle.
voidClearCart (const FString & AuthToken, const FString & CartId, const FOnStoreCartUpdate & SuccessCallback, const FOnError & ErrorCallback)
Removes all items from the cart with the specified ID or from the cart of the current user.
voidGetCart (const FString & AuthToken, const FString & CartId, const FString & Currency, const FString & Locale, const FOnCartUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a list of items from the cart with the specified ID or from the cart of the current user.
voidUpdateItemInCart (const FString & AuthToken, const FString & CartId, const FString & ItemSKU, const int32 Quantity, const FOnStoreCartUpdate & SuccessCallback, const FOnError & ErrorCallback)
Updates the quantity of a previously added item in the cart with the specified ID or in the current user cart.
voidRemoveFromCart (const FString & AuthToken, const FString & CartId, const FString & ItemSKU, const FOnStoreCartUpdate & SuccessCallback, const FOnError & ErrorCallback)
Removes the item from the cart with the specified ID or from the cart of the current user.
voidFillCartById (const FString & AuthToken, const FString & CartId, const TArray< FStoreCartItem > & Items, const FOnCartUpdate & SuccessCallback, const FOnError & ErrorCallback)
Fills the cart with the specified ID or the cart of the current user with items.
voidGetSpecifiedBundle (const FString & Sku, const FOnGetSpecifiedBundleUpdate & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT(""))
Returns information about the contents of the specified bundle.
voidGetPaginatedBundles (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGetListOfBundlesUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0, const FString & AuthToken =TEXT(""))
Returns a list of bundles according to pagination settings.
voidGetBundles (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGetListOfBundlesUpdate & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT(""))
Returns a full list of bundles.
voidGetVirtualCurrency (const FString & CurrencySKU, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnCurrencyUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a full list of virtual currencies.
voidGetVirtualCurrencyPackage (const FString & PackageSKU, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnCurrencyPackageUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a virtual currency package with the specified SKU.
voidBuyItemWithVirtualCurrency (const FString & AuthToken, const FString & ItemSKU, const FString & CurrencySKU, const EXsollaPublishingPlatform Platform, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback)
Creates an order with a specified item.
voidGetPromocodeRewards (const FString & AuthToken, const FString & PromocodeCode, const FOnGetPromocodeRewardsUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a list of items that can be credited to the user when the promo code is redeemed.
voidRedeemPromocode (const FString & AuthToken, const FString & PromocodeCode, const FString & CartId, const FOnPromocodeUpdate & SuccessCallback, const FOnError & ErrorCallback)
Redeems a promo code.
voidRemovePromocodeFromCart (const FString & AuthToken, const FString & CartId, const FOnPromocodeUpdate & SuccessCallback, const FOnError & ErrorCallback)
Removes a promo code from a cart.
voidGetGamesList (const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnStoreGamesUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0)
Returns list of games for building a catalog.
voidGetGamesListBySpecifiedGroup (const FString & ExternalId, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGetGamesListBySpecifiedGroup & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0)
Returns the list of games from the specified group for building a catalog.
voidGetGameItem (const FString & GameSKU, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGameUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a game key package from the catalog with the specified SKU.
voidGetGameKeyItem (const FString & ItemSKU, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGameKeyUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a platform-specific game key package from the catalog with the specified SKU.
voidGetGameKeysListBySpecifiedGroup (const FString & ExternalId, const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnGetGameKeysListBySpecifiedGroup & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0)
Returns a game key package list from the specified group for building a catalog.
voidGetDRMList (const FOnDRMListUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns the list of available DRMs.
voidGetOwnedGames (const FString & AuthToken, const TArray< FString > & AdditionalFields, const FOnOwnedGamesListUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0, const bool bIsSandbox =false)
Returns the list of games owned by the user.
voidRedeemGameCodeByClient (const FString & AuthToken, const FString & Code, const FOnRedeemGameCodeSuccess & SuccessCallback, const FOnError & ErrorCallback)
Grants an entitlement by a provided game key.
voidGetSubscriptionPublicPlans (const TArray< int > PlanId, const TArray< FString > & PlanExternalId, const FString & Country, const FString & Locale, const FOnSubscriptionPublicPlansListUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0)
Returns a list of all plans, including plans purchased by the user while promotions are active.
voidGetSubscriptionPlans (const FString & AuthToken, const TArray< int > PlanId, const TArray< FString > & PlanExternalId, const FString & Country, const FString & Locale, const FOnSubscriptionPlansListUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0)
Returns a list of plans available to authorized users, including plans purchased by the user while promotions are active.
voidGetSubscriptions (const FString & AuthToken, const FString & Locale, const FOnSubscriptionsListUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Limit =50, const int Offset =0)
Returns a list of active recurrent subscriptions that have the status active, non renewing, and pause.
voidGetSubscriptionDetails (const FString & AuthToken, const int32 SubscriptionId, const FString & Locale, const FOnGetSubscriptionDetailsSuccess & SuccessCallback, const FOnError & ErrorCallback)
Returns information about a subscription by its ID.
voidGetSubscriptionPurchaseUrl (const FString & AuthToken, const FString & PlanExternalId, const FString & Country, const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback, const FOnError & ErrorCallback, const int32 ProductId, const TArray< FString > & AvailablePlans, const FXsollaParameters & CustomParameters)
Returns Pay Station URL for the subscription purchase.
voidGetSubscriptionPurchaseUrl (const FString & AuthToken, const FString & PlanExternalId, const FString & Country, const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback, const FOnError & ErrorCallback)
Backward-compatible C++ overload without optional payload fields.
voidGetSubscriptionManagementUrl (const FString & AuthToken, const FString & Country, const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback, const FOnError & ErrorCallback, const int32 ProductId, const TArray< FString > & AvailablePlans, const FXsollaParameters & CustomParameters, const FString & SteamUserId)
Returns the URL of the management interface for the selected subscription.
voidGetSubscriptionManagementUrl (const FString & AuthToken, const FString & Country, const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback, const FOnError & ErrorCallback)
Backward-compatible C++ overload without optional payload fields.
voidGetSubscriptionRenewalUrl (const FString & AuthToken, const int32 SubscriptionId, const FXsollaParameters & CustomParameters, const FString & SteamUserId, const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback, const FOnError & ErrorCallback)
Returns the URL of the renewal interface for the selected subscription.
voidGetSubscriptionUserAccountUrl (const FString & AuthToken, const FString & Locale, const FOnGetSubscriptionUserAccountUrlSuccess & SuccessCallback, const FOnError & ErrorCallback)
Returns URL of the user account interface for subscription management.
voidCancelSubscription (const FString & AuthToken, const int32 SubscriptionId, const FOnCancelSubscriptionSuccess & SuccessCallback, const FOnError & ErrorCallback)
Changes a regular subscription status to non_renewing (subscription is automatically canceled after expiration).
const FString &GetPendingPaystationUrl () const
Returns the Pay Station URL for the current pending payment.
static boolIsCustomTabsBrowserAvailable (UObject * WorldContextObject)
Checks whether Custom Tabs can be used on the current Android device to open payment UI.
static TArray< FStoreItem >GetVirtualItemsWithoutGroup (const FStoreItemsData & StoreItemsData)
Returns a list of virtual items that are not assigned to any group.
static FStringGetItemName (const FStoreItemsData & StoreItemsData, const FString & ItemSKU)
Returns name of the item with the given SKU.
static const FStoreItem &FindItemBySku (const FStoreItemsData & StoreItemsData, const FString & ItemSku, bool & bHasFound)
Searches for an item in the store with the specified SKU.
static const FVirtualCurrencyPackage &FindVirtualCurrencyPackageBySku (const FVirtualCurrencyPackagesData & VirtualCurrencyPackagesData, const FString & ItemSku, bool & bHasFound)
Searches for a virtual currency package with the specified SKU.
static boolIsItemInCart (const FStoreCart & Cart, const FString & ItemSKU)
Checks if the certain item is in the cart.

Protected Functions

Name
voidGetVirtualItems_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreItemsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetItemGroups_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnItemGroupsUpdate SuccessCallback, FOnError ErrorCallback)
voidGetVirtualCurrencies_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnVirtualCurrenciesUpdate SuccessCallback, FOnError ErrorCallback)
voidGetVirtualCurrencyPackages_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnVirtualCurrencyPackagesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetItemsListBySpecifiedGroup_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetItemsListBySpecifiedGroup SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetAllItemsList_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetItemsList SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidFetchPaymentToken_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnFetchTokenSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidCheckOrder_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCheckOrder SuccessCallback, FOnError ErrorCallback)
voidCreateOrderWithSpecifiedFreeItem_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidCreateOrderWithFreeCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidClearCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUpdateItemInCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidRemoveFromCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidFillCartById_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetListOfBundles_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetListOfBundlesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetSpecifiedBundle_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSpecifiedBundleUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetVirtualCurrency_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCurrencyUpdate SuccessCallback, FOnError ErrorCallback)
voidGetVirtualCurrencyPackage_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCurrencyPackageUpdate SuccessCallback, FOnError ErrorCallback)
voidBuyItemWithVirtualCurrency_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetPromocodeRewards_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetPromocodeRewardsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidRedeemPromocode_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPromocodeUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidRemovePromocodeFromCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPromocodeUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetGamesList_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreGamesUpdate SuccessCallback, FOnError ErrorCallback)
voidGetGamesListBySpecifiedGroup_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetGamesListBySpecifiedGroup SuccessCallback, FOnError ErrorCallback)
voidGetGameItem_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGameUpdate SuccessCallback, FOnError ErrorCallback)
voidGetGameKeyItem_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGameKeyUpdate SuccessCallback, FOnError ErrorCallback)
voidGetGameKeysListBySpecifiedGroup_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetGameKeysListBySpecifiedGroup SuccessCallback, FOnError ErrorCallback)
voidGetDRMList_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnDRMListUpdate SuccessCallback, FOnError ErrorCallback)
voidGetOwnedGames_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnOwnedGamesListUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidRedeemGameCodeByClient_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRedeemGameCodeSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetSubscriptionPublicPlans_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSubscriptionPublicPlansListUpdate SuccessCallback, FOnError ErrorCallback)
voidGetSubscriptionPlans_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSubscriptionPlansListUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetSubscriptions_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSubscriptionsListUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetSubscriptionDetails_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSubscriptionDetailsSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetSubscriptionPaystationLink_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSubscriptionPayStationLinkSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetSubscriptionUserAccountUrl_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSubscriptionUserAccountUrlSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidCancelSubscription_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCancelSubscriptionSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidHandleRequestError (XsollaHttpRequestError ErrorData, FOnError ErrorCallback)
Handles HTTP request errors by logging them and invoking the error callback.
voidHandlePurchaseFreeItemsRequest (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
boolIsSandboxEnabled () const
Check whether sandbox is enabled.
voidInnerPurchase (const FString & AuthToken, const FString & Sku, bool bIsFree, const TArray< FXsollaVirtualCurrencyPrice > & VirtualPrices, const FXsollaPaymentTokenRequestPayload PaymentTokenRequestPayload, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback)
voidFetchTokenCallback (const FString & AccessToken, int32 InOrderId)
voidBuyVirtualOrFreeItemCallback (int32 InOrderId)
voidCheckPendingOrderSuccessCallback ()
voidBrowserClosedCallback (bool bIsManually)
voidGetVirtualItemsCallback (const FStoreItemsData & InItemsData)
voidGetVirtualItemsError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage)
voidCallGetVirtualItems ()
voidGetVirtualCurrenciesCallback (const FVirtualCurrencyData & InCurrenciesData)
voidGetVirtualCurrenciesError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage)
voidCallGetVirtualCurrencies ()
voidGetVirtualCurrencyPackagesCallback (const FVirtualCurrencyPackagesData & InPackagesData)
voidGetVirtualCurrencyPackagesError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage)
voidCallGetVirtualCurrencyPackages ()
voidGetAllItemsListBySpecifiedGroupCallback (const FStoreItemsList & InItemsList)
voidGetAllItemsListBySpecifiedGroupError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage)
voidCallGetAllItemsListBySpecifiedGroup ()
voidGetBundlesCallback (const FStoreListOfBundles & InBundlesData)
voidGetBundlesError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage)
voidCallGetBundles ()

Protected Attributes

Name
FStringProjectID
Cached Xsolla Store project id.
FStringCachedAuthToken
Cached auth token.
FXsollaPaymentTokenRequestPayloadCachedPaymentTokenRequestPayload
Cached payload.
FStringPendingPaystationUrl
Pending PayStation URL to be opened in browser.
UXsollaStoreBrowserWrapper *MyBrowser

Public Functions Documentation

function UXsollaStoreSubsystem

Copy
Full screen
Small screen
1UXsollaStoreSubsystem()

function Initialize

Copy
Full screen
Small screen
1virtual void Initialize(
2    FSubsystemCollectionBase & Collection
3) override

function Deinitialize

Copy
Full screen
Small screen
1virtual void Deinitialize() override

function Initialize

Copy
Full screen
Small screen
1void Initialize(
2    const FString & InProjectId
3)

Initializes the controller with the provided Project ID (used to override project settings).

Parameters:

  • InProjectId New Project ID value from Publisher Account. It can be found in Publisher Account next to the name of your project.

function GetPaginatedVirtualItems

Copy
Full screen
Small screen
 1void GetPaginatedVirtualItems(
 2    const FString & Locale,
 3    const FString & Country,
 4    const TArray< FString > & AdditionalFields,
 5    const FOnStoreItemsUpdate & SuccessCallback,
 6    const FOnError & ErrorCallback,
 7    const int Limit =50,
 8    const int Offset =0,
 9    const FString & AuthToken =TEXT("")
10)

Returns a list of virtual items according to pagination settings.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculated based on the user’s IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order and long_description.
  • SuccessCallback Called after virtual items were successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page. The maximum number of elements on a page is 50.
  • Offset Number of the element from which the list is generated (the count starts from 0).
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes items which are set to be available for purchase in the store. For each virtual item, complete data is returned. Attention: The number of items returned in a single response is limited. The default and maximum value is 50 items per response. To get more data page by page, use Limit and Offset fields. More about the use cases .

function GetVirtualItems

Copy
Full screen
Small screen
1void GetVirtualItems(
2    const FString & Locale,
3    const FString & Country,
4    const TArray< FString > & AdditionalFields,
5    const FOnStoreItemsUpdate & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const FString & AuthToken =TEXT("")
8)

Returns a full list of virtual items.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculated based on the user’s IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order and long_description.
  • SuccessCallback Called after virtual items were successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes items which are set to be available for purchase in the store. For each virtual item, complete data is returned. More about the use cases .

function GetItemGroups

Copy
Full screen
Small screen
1void GetItemGroups(
2    const FString & PromoCode,
3    const FOnItemGroupsUpdate & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Returns a full list of virtual item groups.

Parameters:

  • PromoCode Unique case sensitive code. Contains letters and numbers.
  • SuccessCallback Called after virtual item groups were successfully received.
  • ErrorCallback Called after the request resulted with an error.

The list includes groups which are set to be available for purchase in the store More about the use cases .

function GetPaginatedVirtualCurrencies

Copy
Full screen
Small screen
1void GetPaginatedVirtualCurrencies(
2    const FString & Locale,
3    const FString & Country,
4    const TArray< FString > & AdditionalFields,
5    const FOnVirtualCurrenciesUpdate & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const int Limit =50,
8    const int Offset =0
9)

Returns a list of virtual currencies according to pagination settings.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order and long_description.
  • SuccessCallback Called after virtual currencies were successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page. The maximum number of elements on a page is 50.
  • Offset Number of the element from which the list is generated (the count starts from 0).

Attention: The number of currencies returned in a single response is limited. The default and maximum value is 50 currencies per response. To get more data page by page, use Limit and Offset fields. More about the use cases .

function GetVirtualCurrencies

Copy
Full screen
Small screen
1void GetVirtualCurrencies(
2    const FString & Locale,
3    const FString & Country,
4    const TArray< FString > & AdditionalFields,
5    const FOnVirtualCurrenciesUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Returns a full list of virtual currencies.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order and long_description.
  • SuccessCallback Called after virtual currencies were successfully received.
  • ErrorCallback Called after the request resulted with an error.

The list includes currencies which are set to be available for purchase in the store. More about the use cases .

function GetPaginatedVirtualCurrencyPackages

Copy
Full screen
Small screen
 1void GetPaginatedVirtualCurrencyPackages(
 2    const FString & Locale,
 3    const FString & Country,
 4    const TArray< FString > & AdditionalFields,
 5    const FOnVirtualCurrencyPackagesUpdate & SuccessCallback,
 6    const FOnError & ErrorCallback,
 7    const int Limit =50,
 8    const int Offset =0,
 9    const FString & AuthToken =TEXT("")
10)

Returns a list of virtual currency packages according to pagination settings.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after virtual currency packages were successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page. The maximum number of elements on a page is 50.
  • Offset Number of the element from which the list is generated (the count starts from 0).
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes packages which are set to be available for purchase in the store. Attention: The number of packages returned in a single response is limited. The default and maximum value is 50 packages per response. To get more data page by page, use Limit and Offset fields. More about the use cases .

function GetVirtualCurrencyPackages

Copy
Full screen
Small screen
1void GetVirtualCurrencyPackages(
2    const FString & Locale,
3    const FString & Country,
4    const TArray< FString > & AdditionalFields,
5    const FOnVirtualCurrencyPackagesUpdate & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const FString & AuthToken =TEXT("")
8)

Returns a full list of virtual currency packages.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after virtual currency packages were successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes packages which are set to be available for purchase in the store. More about the use cases .

function GetPaginatedItemsListBySpecifiedGroup

Copy
Full screen
Small screen
 1void GetPaginatedItemsListBySpecifiedGroup(
 2    const FString & ExternalId,
 3    const FString & Locale,
 4    const FString & Country,
 5    const TArray< FString > & AdditionalFields,
 6    const FOnGetItemsListBySpecifiedGroup & SuccessCallback,
 7    const FOnError & ErrorCallback,
 8    const int Limit =50,
 9    const int Offset =0,
10    const FString & AuthToken =TEXT("")
11)

Returns a list of items for the specified group according to pagination settings.

Parameters:

  • ExternalId Group external ID.
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after server response.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page. The maximum number of elements on a page is 50.
  • Offset Number of the element from which the list is generated (the count start from 0).
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes items which are set to be available for purchase in the store. In the settings of the group, the display in the store must be enabled. Attention: The number of items returned in a single response is limited. The default and maximum value is 50 items per response. To get more data page by page, use Limit and Offset fields. More about the use cases .

function GetItemsListBySpecifiedGroup

Copy
Full screen
Small screen
1void GetItemsListBySpecifiedGroup(
2    const FString & ExternalId,
3    const FString & Locale,
4    const FString & Country,
5    const TArray< FString > & AdditionalFields,
6    const FOnGetItemsListBySpecifiedGroup & SuccessCallback,
7    const FOnError & ErrorCallback,
8    const FString & AuthToken =TEXT("")
9)

Returns a full list of items for the specified group.

Parameters:

  • ExternalId Group external ID.
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after server response.
  • ErrorCallback Called after the request resulted with an error.
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes items which are set to be available for purchase in the store. In the settings of the group, the display in the store must be enabled. More about the use cases .

function GetAllItemsList

Copy
Full screen
Small screen
1void GetAllItemsList(
2    const FString & Locale,
3    const FOnGetItemsList & SuccessCallback,
4    const FOnError & ErrorCallback,
5    const FString & AuthToken =TEXT("")
6)

Returns a full list of virtual items.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • SuccessCallback Called after server response.
  • ErrorCallback Called after the request resulted with an error.
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes items which are set to be available for purchase in the store. For each virtual item, the SKU, name, description, and data about the groups it belongs to are returned. More about the use cases .

function FetchPaymentToken

Copy
Full screen
Small screen
1void FetchPaymentToken(
2    const FString & AuthToken,
3    const FString & ItemSKU,
4    const FOnFetchTokenSuccess & SuccessCallback,
5    const FOnError & ErrorCallback,
6    const FXsollaPaymentTokenRequestPayload & PurchaseParams
7)

Creates an order for the specified item and returns the payment token and order ID.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • ItemSKU Desired item SKU.
  • SuccessCallback Called after the payment token was successfully fetched. Returns both the payment token and order ID.
  • ErrorCallback Called after the request resulted with an error.
  • PurchaseParams (optional) Purchase and payment UI parameters, such as locale, currency, and bUseSteamOverlayForDesktop.

More about the use cases .

function FetchCartPaymentToken

Copy
Full screen
Small screen
1void FetchCartPaymentToken(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FOnFetchTokenSuccess & SuccessCallback,
5    const FOnError & ErrorCallback,
6    const FXsollaPaymentTokenRequestPayload & PurchaseParams
7)

Creates an order with items from the cart with the specified ID or from the cart of the current user.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of the cart for the purchase. The current user cart will be purchased if empty.
  • SuccessCallback Called after the payment token was successfully fetched.
  • ErrorCallback Called after the request resulted with an error.
  • PurchaseParams (optional) Purchase and payment UI parameters, such as locale, currency, and bUseSteamOverlayForDesktop.

Returns the payment token and order ID. More about the use cases .

function LaunchPaymentConsole

Copy
Full screen
Small screen
1void LaunchPaymentConsole(
2    UObject * WorldContextObject,
3    const int32 OrderId,
4    const FString & AccessToken,
5    const FOnStoreSuccessPayment & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const FOnStoreBrowserClosed & BrowserClosedCallback,
8    const EXsollaPayStationVersion PayStationVersion =EXsollaPayStationVersion::v4
9)

Opens payment UI for the provided payment token.

Parameters:

  • WorldContextObject The world context.
  • OrderId Order identifier.
  • AccessToken Payment token used during purchase processing.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.
  • BrowserClosedCallback Called after the browser is closed. The event is tracked only when the payment UI is opened in the built-in browser. External browser events can’t be tracked.
  • PayStationVersion Pay Station version. V4 by default.

More about the use cases:

function PurchaseItemBySku

Copy
Full screen
Small screen
1void PurchaseItemBySku(
2    const FString & AuthToken,
3    const FString & ItemSKU,
4    const FXsollaPaymentTokenRequestPayload & PurchaseParams,
5    const FOnPurchaseUpdate & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const FOnStoreBrowserClosed & BrowserClosedCallback
8)

Initiates purchase for specified item SKU.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • ItemSKU Desired item SKU.
  • PurchaseParams (optional) Purchase and payment UI parameters, such as locale, currency, and bUseSteamOverlayForDesktop.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.
  • BrowserClosedCallback Called after the browser is closed. The event is tracked only when the payment UI is opened in the built-in browser. External browser events can’t be tracked.

function PurchaseCart

Copy
Full screen
Small screen
1void PurchaseCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FXsollaPaymentTokenRequestPayload & PurchaseParams,
5    const FOnPurchaseUpdate & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const FOnStoreBrowserClosed & BrowserClosedCallback
8)

Initiates the purchase process for the cart with the specified ID or for the cart of the current user.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of the cart to purchase. If not specified, the current user’s cart will be used.
  • PurchaseParams (optional) Purchase and payment UI parameters, such as locale, currency, and bUseSteamOverlayForDesktop.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.
  • BrowserClosedCallback Called after the browser is closed. The event is tracked only when the payment UI is opened in the built-in browser. External browser events can’t be tracked.

function PurchaseFreeCart

Copy
Full screen
Small screen
1void PurchaseFreeCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FOnPurchaseUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Initiates the purchase process for the free cart with the specified ID or for the free cart of the current user.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of the cart to purchase. If not specified, the current user’s cart will be used.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.

function CheckOrder

Copy
Full screen
Small screen
1void CheckOrder(
2    const FString & AuthToken,
3    const int32 OrderId,
4    const FOnCheckOrder & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Checks pending order status by its ID.

Parameters:

  • AuthToken User authorization token.
  • OrderId Identifier of order to be checked.
  • SuccessCallback Callback function called after successful order check. Order status will be received.
  • ErrorCallback Callback function called after the request resulted with an error.

function CheckPendingOrder

Copy
Full screen
Small screen
1void CheckPendingOrder(
2    const FString & AccessToken,
3    const int32 OrderId,
4    const FOnStoreSuccessPayment & SuccessCallback,
5    const FOnError & ErrorCallback,
6    bool bIsUserInvolvedToPayment =false
7)

Checks pending order.

Parameters:

  • AccessToken Payment token used during purchase processing.
  • OrderId Identifier of order.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.
  • bIsUserInvolvedToPayment Whether payment UI involved in purchase. true for purchase for real currency. false for free item purchase and purchase for virtual currency

function CreateOrderWithSpecifiedFreeItem

Copy
Full screen
Small screen
1void CreateOrderWithSpecifiedFreeItem(
2    const FString & AuthToken,
3    const FString & ItemSKU,
4    const FOnPurchaseUpdate & SuccessCallback,
5    const FOnError & ErrorCallback,
6    const int32 Quantity =1
7)

Create order with specified free item.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • ItemSKU Desired free item SKU.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.
  • Quantity Item quantity.

The created order will get a done order status. More about the use cases .

function CreateOrderWithFreeCart

Copy
Full screen
Small screen
1void CreateOrderWithFreeCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FOnPurchaseUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Create order with free cart.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of the cart for the purchase. The current user cart will be purchased if empty.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.

The created order will get a done order status. More about the use cases .

function PurchaseStoreItem

Copy
Full screen
Small screen
1void PurchaseStoreItem(
2    const FString & AuthToken,
3    const FStoreItem & StoreItem,
4    const FXsollaPaymentTokenRequestPayload & PurchaseParams,
5    const FOnPurchaseUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Initiates purchase process for specified store item.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • StoreItem Desired store item.
  • PurchaseParams (optional) Purchase and payment UI parameters, such as locale, currency, and bUseSteamOverlayForDesktop.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.

function PurchaseCurrencyPackage

Copy
Full screen
Small screen
1void PurchaseCurrencyPackage(
2    const FString & AuthToken,
3    const FVirtualCurrencyPackage & CurrencyPackage,
4    const FXsollaPaymentTokenRequestPayload & PurchaseParams,
5    const FOnPurchaseUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Initiate purchase process for specified currency package.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CurrencyPackage Desired currency package.
  • PurchaseParams (optional) Purchase and payment UI parameters, such as locale, currency, and bUseSteamOverlayForDesktop.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.

function PurchaseBundle

Copy
Full screen
Small screen
1void PurchaseBundle(
2    const FString & AuthToken,
3    const FStoreBundle & Bundle,
4    const FXsollaPaymentTokenRequestPayload & PurchaseParams,
5    const FOnPurchaseUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Initiate purchase process for specified bundle.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • Bundle Desired bundle.
  • PurchaseParams (optional) Purchase and payment UI parameters, such as locale, currency, and bUseSteamOverlayForDesktop.
  • SuccessCallback Called after the payment was successfully completed.
  • ErrorCallback Called after the request resulted with an error.

function ClearCart

Copy
Full screen
Small screen
1void ClearCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FOnStoreCartUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Removes all items from the cart with the specified ID or from the cart of the current user.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of a cart to be cleared.
  • SuccessCallback Called after successful cart clearing.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function GetCart

Copy
Full screen
Small screen
1void GetCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FString & Currency,
5    const FString & Locale,
6    const FOnCartUpdate & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Returns a list of items from the cart with the specified ID or from the cart of the current user.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of the cart to be updated. The current user cart will be returned if empty.
  • Currency Сurrency in which prices are displayed (USD by default). Three-letter currency code per ISO 4217 . Check the documentation for detailed information about currencies supported by Xsolla .
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • SuccessCallback Called after cart is successfully received.
  • ErrorCallback Called after the request resulted with an error.

For each item, complete data is returned. More about the use cases .

function UpdateItemInCart

Copy
Full screen
Small screen
1void UpdateItemInCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FString & ItemSKU,
5    const int32 Quantity,
6    const FOnStoreCartUpdate & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Updates the quantity of a previously added item in the cart with the specified ID or in the current user cart.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of a cart to which item will be added. The current user cart will be modified if empty.
  • ItemSKU Desired item SKU.
  • Quantity Number of items to be added to the cart.
  • SuccessCallback Called after successfully updating item in the cart.
  • ErrorCallback Called after the request resulted with an error.

If there is no item with the specified SKU in the cart, it will be added. More about the use cases .

function RemoveFromCart

Copy
Full screen
Small screen
1void RemoveFromCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FString & ItemSKU,
5    const FOnStoreCartUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Removes the item from the cart with the specified ID or from the cart of the current user.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of a cart from which the item will be removed.
  • ItemSKU Desired item SKU.
  • SuccessCallback Called after successfully removing an item from the cart.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function FillCartById

Copy
Full screen
Small screen
1void FillCartById(
2    const FString & AuthToken,
3    const FString & CartId,
4    const TArray< FStoreCartItem > & Items,
5    const FOnCartUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Fills the cart with the specified ID or the cart of the current user with items.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId (optional) Identifier of cart which will be filled.
  • Items Array of items for filling the cart. If there is already an item with the same SKU in the cart, the existing item position will be replaced by the passed value.
  • SuccessCallback Called after cart is successfully filled. Returns updated cart.
  • ErrorCallback Called after the request resulted with an error.

If there is already an item with the same SKU in the cart, the existing item position will be replaced by the passed value. More about the use cases .

function GetSpecifiedBundle

Copy
Full screen
Small screen
1void GetSpecifiedBundle(
2    const FString & Sku,
3    const FOnGetSpecifiedBundleUpdate & SuccessCallback,
4    const FOnError & ErrorCallback,
5    const FString & AuthToken =TEXT("")
6)

Returns information about the contents of the specified bundle.

Parameters:

  • Sku Bundle SKU.
  • SuccessCallback Called after the cart is successfully filled.
  • ErrorCallback Called after the request resulted with an error.
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

In the bundle settings, display in the store must be enabled. More about the use cases .

function GetPaginatedBundles

Copy
Full screen
Small screen
 1void GetPaginatedBundles(
 2    const FString & Locale,
 3    const FString & Country,
 4    const TArray< FString > & AdditionalFields,
 5    const FOnGetListOfBundlesUpdate & SuccessCallback,
 6    const FOnError & ErrorCallback,
 7    const int Limit =50,
 8    const int Offset =0,
 9    const FString & AuthToken =TEXT("")
10)

Returns a list of bundles according to pagination settings.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculated based on the user’s IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after bundles are successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page. The maximum number of elements on a page is 50.
  • Offset Number of the element from which the list is generated (the count starts from 0).
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes bundles which are set to be available for purchase in the store. Attention: The number of bundles returned in a single response is limited. The default and maximum value is 50 bundles per response. To get more data page by page, use Limit and Offset fields. More about the use cases .

function GetBundles

Copy
Full screen
Small screen
1void GetBundles(
2    const FString & Locale,
3    const FString & Country,
4    const TArray< FString > & AdditionalFields,
5    const FOnGetListOfBundlesUpdate & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const FString & AuthToken =TEXT("")
8)

Returns a full list of bundles.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculated based on the user’s IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after bundles are successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ). Can be empty. If specified, the method returns items that match the personalization rules for the current user.

The list includes bundles which are set to be available for purchase in the store. More about the use cases .

function GetVirtualCurrency

Copy
Full screen
Small screen
1void GetVirtualCurrency(
2    const FString & CurrencySKU,
3    const FString & Locale,
4    const FString & Country,
5    const TArray< FString > & AdditionalFields,
6    const FOnCurrencyUpdate & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Returns a full list of virtual currencies.

Parameters:

  • CurrencySKU Desired currency SKU.
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculated based on the user’s IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after successful request of specified virtual currency data.
  • ErrorCallback Called after the request resulted with an error.

The list includes currencies which are set to be available for purchase in the store. More about the use cases .

function GetVirtualCurrencyPackage

Copy
Full screen
Small screen
1void GetVirtualCurrencyPackage(
2    const FString & PackageSKU,
3    const FString & Locale,
4    const FString & Country,
5    const TArray< FString > & AdditionalFields,
6    const FOnCurrencyPackageUpdate & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Returns a virtual currency package with the specified SKU.

Parameters:

  • PackageSKU Desired currency package SKU.
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculated based on the user’s IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order and long_description.
  • SuccessCallback Called after successful request of specified virtual currency package data.
  • ErrorCallback Called after the request resulted with an error.

The package must be set to be available for purchase in the store. More about the use cases .

function BuyItemWithVirtualCurrency

Copy
Full screen
Small screen
1void BuyItemWithVirtualCurrency(
2    const FString & AuthToken,
3    const FString & ItemSKU,
4    const FString & CurrencySKU,
5    const EXsollaPublishingPlatform Platform,
6    const FOnPurchaseUpdate & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Creates an order with a specified item.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • ItemSKU Desired item SKU.
  • CurrencySKU SKU of virtual currency to buy virtual items with.
  • Platform Publishing platform the user plays on.

Can be xsolla (default), playstation_network, xbox_live, pc_standalone, nintendo_shop, google_play, app_store_ios, android_standalone, ios_standalone, android_other, ios_other, or pc_other.

  • SuccessCallback Called after the successful item purchase.
  • ErrorCallback Called after the request resulted with an error.

The created order will get a new order status. More about the use cases .

function GetPromocodeRewards

Copy
Full screen
Small screen
1void GetPromocodeRewards(
2    const FString & AuthToken,
3    const FString & PromocodeCode,
4    const FOnGetPromocodeRewardsUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Returns a list of items that can be credited to the user when the promo code is redeemed.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • PromocodeCode Unique case sensitive code. Contains letters and numbers.
  • SuccessCallback Called after successfully receiving promocode rewards.
  • ErrorCallback Called after the request resulted with an error.

Allows users to choose from several available items. More about the use cases .

function RedeemPromocode

Copy
Full screen
Small screen
1void RedeemPromocode(
2    const FString & AuthToken,
3    const FString & PromocodeCode,
4    const FString & CartId,
5    const FOnPromocodeUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Redeems a promo code.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • PromocodeCode Unique case sensitive code. Contains letters and numbers.
  • CartId Identifier of the cart.
  • SuccessCallback Called after successful promocode redemption.
  • ErrorCallback Called after the request resulted with an error.

After redeeming the promo code, the user gets free items and/or the price of the cart is reduced. More about the use cases .

function RemovePromocodeFromCart

Copy
Full screen
Small screen
1void RemovePromocodeFromCart(
2    const FString & AuthToken,
3    const FString & CartId,
4    const FOnPromocodeUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Removes a promo code from a cart.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • CartId Identifier of the cart.
  • SuccessCallback Called after successful promocode redemption.
  • ErrorCallback Called after the request resulted with an error.

After the promo code is removed, the total price of all items in the cart will be recalculated without bonuses and discounts provided by a promo code More about the use cases .

function GetGamesList

Copy
Full screen
Small screen
1void GetGamesList(
2    const FString & Locale,
3    const FString & Country,
4    const TArray< FString > & AdditionalFields,
5    const FOnStoreGamesUpdate & SuccessCallback,
6    const FOnError & ErrorCallback,
7    const int Limit =50,
8    const int Offset =0
9)

Returns list of games for building a catalog.

Parameters:

  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calcualtions are based on the user’s IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after successful request of specified games list data.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page.
  • Offset Number of the element from which the list is generated (the count starts from 0).

function GetGamesListBySpecifiedGroup

Copy
Full screen
Small screen
 1void GetGamesListBySpecifiedGroup(
 2    const FString & ExternalId,
 3    const FString & Locale,
 4    const FString & Country,
 5    const TArray< FString > & AdditionalFields,
 6    const FOnGetGamesListBySpecifiedGroup & SuccessCallback,
 7    const FOnError & ErrorCallback,
 8    const int Limit =50,
 9    const int Offset =0
10)

Returns the list of games from the specified group for building a catalog.

Parameters:

  • ExternalId Group external ID.
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculations are based on the user’s IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after successful request of specified game list data.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page.
  • Offset Number of the element from which the list is generated (the count starts from 0).

function GetGameItem

Copy
Full screen
Small screen
1void GetGameItem(
2    const FString & GameSKU,
3    const FString & Locale,
4    const FString & Country,
5    const TArray< FString > & AdditionalFields,
6    const FOnGameUpdate & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Returns a game key package from the catalog with the specified SKU.

Parameters:

  • GameSKU SKU of a game key package.
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculations are based on the user’s IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after successful request of specified game data.
  • ErrorCallback Called after the request resulted with an error.

This method retrieves a catalog item that represents a game as a whole.

function GetGameKeyItem

Copy
Full screen
Small screen
1void GetGameKeyItem(
2    const FString & ItemSKU,
3    const FString & Locale,
4    const FString & Country,
5    const TArray< FString > & AdditionalFields,
6    const FOnGameKeyUpdate & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Returns a platform-specific game key package from the catalog with the specified SKU.

Parameters:

  • ItemSKU SKU of a game key package for a specific platform. Format: _ (e.g., “my_game_steam”).

This method retrieves a catalog item that represents a purchasable package of game keys for a specific platform or DRM (for example, Steam or Epic Games Store).

Supported platform suffixes:

  • Steam: steam
  • PlayStation: playstation
  • Xbox: xbox
  • Uplay: uplay
  • Origin: origin
  • DRM Free: drmfree
  • GOG: gog
  • Epic Games Store: epicgames
  • Nintendo Switch eShop: nintendo_eshop
  • Discord Game Store: discord_game_store
  • Oculus: oculus
  • Viveport: viveport
  • Google Stadia: stadia
  • MY.GAMES Store: my_gameLocaleResponse language. Two-letter lowercase language code . Leave empty to use the default value.

CountryCountry for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculations are based on the user’s IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla .

AdditionalFieldsThe list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.

SuccessCallbackCalled after successful request of specified game data.

ErrorCallbackCalled after the request resulted with an error.

function GetGameKeysListBySpecifiedGroup

Copy
Full screen
Small screen
 1void GetGameKeysListBySpecifiedGroup(
 2    const FString & ExternalId,
 3    const FString & Locale,
 4    const FString & Country,
 5    const TArray< FString > & AdditionalFields,
 6    const FOnGetGameKeysListBySpecifiedGroup & SuccessCallback,
 7    const FOnError & ErrorCallback,
 8    const int Limit =50,
 9    const int Offset =0
10)

Returns a game key package list from the specified group for building a catalog.

Parameters:

  • ExternalId Group external ID.
  • Locale Response language. Two-letter lowercase language code . Leave empty to use the default value.
  • Country Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Calculations are based on the user’s IP address in not specified. Check the documentation for detailed information about countries supported by Xsolla .
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list, order, and long_description.
  • SuccessCallback Called after successful request of specified game key data.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page.
  • Offset Number of the element from which the list is generated (the count starts from 0).

function GetDRMList

Copy
Full screen
Small screen
1void GetDRMList(
2    const FOnDRMListUpdate & SuccessCallback,
3    const FOnError & ErrorCallback
4)

Returns the list of available DRMs.

Parameters:

  • SuccessCallback Called after successful request of specified DRM data.
  • ErrorCallback Called after the request resulted with an error.

function GetOwnedGames

Copy
Full screen
Small screen
1void GetOwnedGames(
2    const FString & AuthToken,
3    const TArray< FString > & AdditionalFields,
4    const FOnOwnedGamesListUpdate & SuccessCallback,
5    const FOnError & ErrorCallback,
6    const int Limit =50,
7    const int Offset =0,
8    const bool bIsSandbox =false
9)

Returns the list of games owned by the user.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • AdditionalFields The list of additional fields. These fields will be in a response if you send it in a request. Available fields attributes.
  • SuccessCallback Called after successful request of specified owned games data.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page.
  • Offset Number of the element from which the list is generated (the count starts from 0).
  • bIsSandbox What type of entitlements should be returned. If the parameter is set to true, the entitlements received by the user in the sandbox mode only are returned. If the parameter is set to false, the entitlements received by the user in the live mode only are returned.

The response will contain an array of games owned by a particular user.

function RedeemGameCodeByClient

Copy
Full screen
Small screen
1void RedeemGameCodeByClient(
2    const FString & AuthToken,
3    const FString & Code,
4    const FOnRedeemGameCodeSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Grants an entitlement by a provided game key.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • Code Game key.
  • SuccessCallback Called after successful redemption.
  • ErrorCallback Called after the request resulted with an error.

function GetSubscriptionPublicPlans

Copy
Full screen
Small screen
 1void GetSubscriptionPublicPlans(
 2    const TArray< int > PlanId,
 3    const TArray< FString > & PlanExternalId,
 4    const FString & Country,
 5    const FString & Locale,
 6    const FOnSubscriptionPublicPlansListUpdate & SuccessCallback,
 7    const FOnError & ErrorCallback,
 8    const int Limit =50,
 9    const int Offset =0
10)

Returns a list of all plans, including plans purchased by the user while promotions are active.

Parameters:

  • PlanId Array of subscription plan IDs. Plan ID can be found in the URL of the subscription details page in Publisher Account (https://publisher.xsolla.com/{merchant_id}/projects/{project_id}/subscriptions/plans/{merplan_id} ).
  • PlanExternalId Array of subscription plan external IDs (32 characters per ID). Plan external ID can be found in Publisher Account in the Subscriptions > Subscription plans section next to the plan name.
  • User’s country. Affects the choice of locale and currency. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • Locale Language of the UI. By default, it is determined by the user’s IP address.

Can be enforced by using two-letter lowercase language code .

  • SuccessCallback Called after public plans have been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page (15 elements are displayed by default).
  • Offset Number of elements from which the list is generated (the count starts from 0).

More about the use cases .

function GetSubscriptionPlans

Copy
Full screen
Small screen
 1void GetSubscriptionPlans(
 2    const FString & AuthToken,
 3    const TArray< int > PlanId,
 4    const TArray< FString > & PlanExternalId,
 5    const FString & Country,
 6    const FString & Locale,
 7    const FOnSubscriptionPlansListUpdate & SuccessCallback,
 8    const FOnError & ErrorCallback,
 9    const int Limit =50,
10    const int Offset =0
11)

Returns a list of plans available to authorized users, including plans purchased by the user while promotions are active.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • PlanId Array of subscription plan IDs. Plan ID can be found in the URL of the subscription details page in Publisher Account (https://publisher.xsolla.com/{merchant_id}/projects/{project_id}/subscriptions/plans/{merplan_id} ).
  • PlanExternalId Array of subscription plan external IDs (32 characters per ID). Plan external ID can be found in Publisher Account in the Subscriptions > Subscription plans section next to the plan name.
  • Country User’s country. Affects the choice of locale and currency. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • Locale Language of the UI. By default, it is determined by the user’s IP address.

Can be enforced by using two-letter lowercase language code .

  • SuccessCallback Called after a list of plans has been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page (15 elements are displayed by default).
  • Offset Number of elements from which the list is generated (the count starts from 0).

More about the use cases .

function GetSubscriptions

Copy
Full screen
Small screen
1void GetSubscriptions(
2    const FString & AuthToken,
3    const FString & Locale,
4    const FOnSubscriptionsListUpdate & SuccessCallback,
5    const FOnError & ErrorCallback,
6    const int Limit =50,
7    const int Offset =0
8)

Returns a list of active recurrent subscriptions that have the status active, non renewing, and pause.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • Locale Language of the UI. By default, it is determined by the user’s IP address.

Can be enforced by using two-letter lowercase language code .

  • SuccessCallback Called after the list pf subscriptions has been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.
  • Limit Limit for the number of elements on the page (15 elements are displayed by default).
  • Offset Number of elements from which the list is generated (the count starts from 0).

More about the use cases .

function GetSubscriptionDetails

Copy
Full screen
Small screen
1void GetSubscriptionDetails(
2    const FString & AuthToken,
3    const int32 SubscriptionId,
4    const FString & Locale,
5    const FOnGetSubscriptionDetailsSuccess & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Returns information about a subscription by its ID.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • SubscriptionId Subscription ID.
  • Locale Language of the UI. By default, it is determined by the user’s IP address.

Can be enforced by using two-letter lowercase language code .

  • SuccessCallback Called after subscription data have been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.

Subscription can be have any status. More about the use cases .

function GetSubscriptionPurchaseUrl

Copy
Full screen
Small screen
 1void GetSubscriptionPurchaseUrl(
 2    const FString & AuthToken,
 3    const FString & PlanExternalId,
 4    const FString & Country,
 5    const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback,
 6    const FOnError & ErrorCallback,
 7    const int32 ProductId,
 8    const TArray< FString > & AvailablePlans,
 9    const FXsollaParameters & CustomParameters
10)

Returns Pay Station URL for the subscription purchase.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • PlanExternalId Subscription plan external ID (32 characters). Plan external ID can be found in Publisher Account in the Subscriptions > Subscription plans section next to the plan name.
  • Country User’s country. Affects the choice of locale and currency. Two-letter uppercase country code per ISO 3166-1 alpha-2 . By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • SuccessCallback Called after the URL has been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.
  • ProductId (optional) ID of the product associated with the subscription plan.
  • AvailablePlans (optional) Subscription plan external IDs to show in payment UI.
  • CustomParameters (optional) Map of custom parameters.

More about the use cases .

function GetSubscriptionPurchaseUrl

Copy
Full screen
Small screen
1inline void GetSubscriptionPurchaseUrl(
2    const FString & AuthToken,
3    const FString & PlanExternalId,
4    const FString & Country,
5    const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Backward-compatible C++ overload without optional payload fields.

function GetSubscriptionManagementUrl

Copy
Full screen
Small screen
 1void GetSubscriptionManagementUrl(
 2    const FString & AuthToken,
 3    const FString & Country,
 4    const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback,
 5    const FOnError & ErrorCallback,
 6    const int32 ProductId,
 7    const TArray< FString > & AvailablePlans,
 8    const FXsollaParameters & CustomParameters,
 9    const FString & SteamUserId
10)

Returns the URL of the management interface for the selected subscription.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • Country User’s country. Two-letter uppercase country code per ISO 3166-1 alpha-2 . Affects the choice of locale and currency. By default, it is determined by the user’s IP address. Check the documentation for detailed information about countries supported by Xsolla .
  • SuccessCallback Called after the URL has been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.
  • ProductId (optional) ID of the product associated with the subscription plan.
  • AvailablePlans (optional) Subscription plan external IDs to show in payment UI.
  • CustomParameters (optional) Map of custom parameters.
  • SteamUserId (optional) Steam user ID.

More about the use cases .

function GetSubscriptionManagementUrl

Copy
Full screen
Small screen
1inline void GetSubscriptionManagementUrl(
2    const FString & AuthToken,
3    const FString & Country,
4    const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Backward-compatible C++ overload without optional payload fields.

function GetSubscriptionRenewalUrl

Copy
Full screen
Small screen
1void GetSubscriptionRenewalUrl(
2    const FString & AuthToken,
3    const int32 SubscriptionId,
4    const FXsollaParameters & CustomParameters,
5    const FString & SteamUserId,
6    const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Returns the URL of the renewal interface for the selected subscription.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • SubscriptionId Subscription ID.
  • CustomParameters (optional) Map of custom parameters.
  • SteamUserId (optional) Steam user ID.
  • SuccessCallback Called after the URL has been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function GetSubscriptionUserAccountUrl

Copy
Full screen
Small screen
1void GetSubscriptionUserAccountUrl(
2    const FString & AuthToken,
3    const FString & Locale,
4    const FOnGetSubscriptionUserAccountUrlSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Returns URL of the user account interface for subscription management.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • Locale Language of the UI. By default, it is determined by the user’s IP address.

Can be enforced by using two-letter lowercase language code .

  • SuccessCallback Called after the URL has been successfully recieved.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function CancelSubscription

Copy
Full screen
Small screen
1void CancelSubscription(
2    const FString & AuthToken,
3    const int32 SubscriptionId,
4    const FOnCancelSubscriptionSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Changes a regular subscription status to non_renewing (subscription is automatically canceled after expiration).

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • SubscriptionId Subscription ID.
  • SuccessCallback Called after successful subscription cancelling.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function GetPendingPaystationUrl

Copy
Full screen
Small screen
1const FString & GetPendingPaystationUrl() const

Returns the Pay Station URL for the current pending payment.

The URL should be opened in a web browser to continue the payment process. If there is no pending payment, the returned string is empty.

function IsCustomTabsBrowserAvailable

Copy
Full screen
Small screen
1static bool IsCustomTabsBrowserAvailable(
2    UObject * WorldContextObject
3)

Checks whether Custom Tabs can be used on the current Android device to open payment UI.

Parameters:

  • WorldContextObject The world context.

If the method returns false for Android build, WebView is used. For desktop builds, the method always returns false and doesn’t affect the way the payment UI is opened.

function GetVirtualItemsWithoutGroup

Copy
Full screen
Small screen
1static TArray< FStoreItem > GetVirtualItemsWithoutGroup(
2    const FStoreItemsData & StoreItemsData
3)

Returns a list of virtual items that are not assigned to any group.

function GetItemName

Copy
Full screen
Small screen
1static FString GetItemName(
2    const FStoreItemsData & StoreItemsData,
3    const FString & ItemSKU
4)

Returns name of the item with the given SKU.

function FindItemBySku

Copy
Full screen
Small screen
1static const FStoreItem & FindItemBySku(
2    const FStoreItemsData & StoreItemsData,
3    const FString & ItemSku,
4    bool & bHasFound
5)

Searches for an item in the store with the specified SKU.

If an item with the specified SKU exists, the method returns a reference to it and sets bHasFound to true. If no item is found, bHasFound is set to false.

function FindVirtualCurrencyPackageBySku

Copy
Full screen
Small screen
1static const FVirtualCurrencyPackage & FindVirtualCurrencyPackageBySku(
2    const FVirtualCurrencyPackagesData & VirtualCurrencyPackagesData,
3    const FString & ItemSku,
4    bool & bHasFound
5)

Searches for a virtual currency package with the specified SKU.

If a virtual currency package with the specified SKU exists, the method returns a reference to it and sets bHasFound to true. If no package is found, bHasFound is set to false.

function IsItemInCart

Copy
Full screen
Small screen
1static bool IsItemInCart(
2    const FStoreCart & Cart,
3    const FString & ItemSKU
4)

Checks if the certain item is in the cart.

Protected Functions Documentation

function GetVirtualItems_HttpRequestComplete

Copy
Full screen
Small screen
1void GetVirtualItems_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnStoreItemsUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetItemGroups_HttpRequestComplete

Copy
Full screen
Small screen
1void GetItemGroups_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnItemGroupsUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetVirtualCurrencies_HttpRequestComplete

Copy
Full screen
Small screen
1void GetVirtualCurrencies_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnVirtualCurrenciesUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetVirtualCurrencyPackages_HttpRequestComplete

Copy
Full screen
Small screen
1void GetVirtualCurrencyPackages_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnVirtualCurrencyPackagesUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetItemsListBySpecifiedGroup_HttpRequestComplete

Copy
Full screen
Small screen
1void GetItemsListBySpecifiedGroup_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetItemsListBySpecifiedGroup SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetAllItemsList_HttpRequestComplete

Copy
Full screen
Small screen
1void GetAllItemsList_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetItemsList SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function FetchPaymentToken_HttpRequestComplete

Copy
Full screen
Small screen
1void FetchPaymentToken_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnFetchTokenSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function CheckOrder_HttpRequestComplete

Copy
Full screen
Small screen
1void CheckOrder_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCheckOrder SuccessCallback,
6    FOnError ErrorCallback
7)

function CreateOrderWithSpecifiedFreeItem_HttpRequestComplete

Copy
Full screen
Small screen
1void CreateOrderWithSpecifiedFreeItem_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnPurchaseUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function CreateOrderWithFreeCart_HttpRequestComplete

Copy
Full screen
Small screen
1void CreateOrderWithFreeCart_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnPurchaseUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function ClearCart_HttpRequestComplete

Copy
Full screen
Small screen
1void ClearCart_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnStoreCartUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetCart_HttpRequestComplete

Copy
Full screen
Small screen
1void GetCart_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCartUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UpdateItemInCart_HttpRequestComplete

Copy
Full screen
Small screen
1void UpdateItemInCart_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnStoreCartUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function RemoveFromCart_HttpRequestComplete

Copy
Full screen
Small screen
1void RemoveFromCart_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnStoreCartUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function FillCartById_HttpRequestComplete

Copy
Full screen
Small screen
1void FillCartById_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCartUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetListOfBundles_HttpRequestComplete

Copy
Full screen
Small screen
1void GetListOfBundles_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetListOfBundlesUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetSpecifiedBundle_HttpRequestComplete

Copy
Full screen
Small screen
1void GetSpecifiedBundle_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetSpecifiedBundleUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetVirtualCurrency_HttpRequestComplete

Copy
Full screen
Small screen
1void GetVirtualCurrency_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCurrencyUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetVirtualCurrencyPackage_HttpRequestComplete

Copy
Full screen
Small screen
1void GetVirtualCurrencyPackage_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCurrencyPackageUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function BuyItemWithVirtualCurrency_HttpRequestComplete

Copy
Full screen
Small screen
1void BuyItemWithVirtualCurrency_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnPurchaseUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetPromocodeRewards_HttpRequestComplete

Copy
Full screen
Small screen
1void GetPromocodeRewards_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetPromocodeRewardsUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function RedeemPromocode_HttpRequestComplete

Copy
Full screen
Small screen
1void RedeemPromocode_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnPromocodeUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function RemovePromocodeFromCart_HttpRequestComplete

Copy
Full screen
Small screen
1void RemovePromocodeFromCart_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnPromocodeUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetGamesList_HttpRequestComplete

Copy
Full screen
Small screen
1void GetGamesList_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnStoreGamesUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetGamesListBySpecifiedGroup_HttpRequestComplete

Copy
Full screen
Small screen
1void GetGamesListBySpecifiedGroup_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetGamesListBySpecifiedGroup SuccessCallback,
6    FOnError ErrorCallback
7)

function GetGameItem_HttpRequestComplete

Copy
Full screen
Small screen
1void GetGameItem_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGameUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetGameKeyItem_HttpRequestComplete

Copy
Full screen
Small screen
1void GetGameKeyItem_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGameKeyUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetGameKeysListBySpecifiedGroup_HttpRequestComplete

Copy
Full screen
Small screen
1void GetGameKeysListBySpecifiedGroup_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetGameKeysListBySpecifiedGroup SuccessCallback,
6    FOnError ErrorCallback
7)

function GetDRMList_HttpRequestComplete

Copy
Full screen
Small screen
1void GetDRMList_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnDRMListUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetOwnedGames_HttpRequestComplete

Copy
Full screen
Small screen
1void GetOwnedGames_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnOwnedGamesListUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function RedeemGameCodeByClient_HttpRequestComplete

Copy
Full screen
Small screen
1void RedeemGameCodeByClient_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnRedeemGameCodeSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetSubscriptionPublicPlans_HttpRequestComplete

Copy
Full screen
Small screen
1void GetSubscriptionPublicPlans_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnSubscriptionPublicPlansListUpdate SuccessCallback,
6    FOnError ErrorCallback
7)

function GetSubscriptionPlans_HttpRequestComplete

Copy
Full screen
Small screen
1void GetSubscriptionPlans_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnSubscriptionPlansListUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetSubscriptions_HttpRequestComplete

Copy
Full screen
Small screen
1void GetSubscriptions_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnSubscriptionsListUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetSubscriptionDetails_HttpRequestComplete

Copy
Full screen
Small screen
1void GetSubscriptionDetails_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetSubscriptionDetailsSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)
Copy
Full screen
Small screen
1void GetSubscriptionPaystationLink_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetSubscriptionPayStationLinkSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetSubscriptionUserAccountUrl_HttpRequestComplete

Copy
Full screen
Small screen
1void GetSubscriptionUserAccountUrl_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnGetSubscriptionUserAccountUrlSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function CancelSubscription_HttpRequestComplete

Copy
Full screen
Small screen
1void CancelSubscription_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCancelSubscriptionSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function HandleRequestError

Copy
Full screen
Small screen
1void HandleRequestError(
2    XsollaHttpRequestError ErrorData,
3    FOnError ErrorCallback
4)

Handles HTTP request errors by logging them and invoking the error callback.

function HandlePurchaseFreeItemsRequest

Copy
Full screen
Small screen
1void HandlePurchaseFreeItemsRequest(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnPurchaseUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function IsSandboxEnabled

Copy
Full screen
Small screen
1bool IsSandboxEnabled() const

Check whether sandbox is enabled.

function InnerPurchase

Copy
Full screen
Small screen
1void InnerPurchase(
2    const FString & AuthToken,
3    const FString & Sku,
4    bool bIsFree,
5    const TArray< FXsollaVirtualCurrencyPrice > & VirtualPrices,
6    const FXsollaPaymentTokenRequestPayload PaymentTokenRequestPayload,
7    const FOnPurchaseUpdate & SuccessCallback,
8    const FOnError & ErrorCallback
9)

function FetchTokenCallback

Copy
Full screen
Small screen
1void FetchTokenCallback(
2    const FString & AccessToken,
3    int32 InOrderId
4)

function BuyVirtualOrFreeItemCallback

Copy
Full screen
Small screen
1void BuyVirtualOrFreeItemCallback(
2    int32 InOrderId
3)

function CheckPendingOrderSuccessCallback

Copy
Full screen
Small screen
1void CheckPendingOrderSuccessCallback()

function BrowserClosedCallback

Copy
Full screen
Small screen
1void BrowserClosedCallback(
2    bool bIsManually
3)

function GetVirtualItemsCallback

Copy
Full screen
Small screen
1void GetVirtualItemsCallback(
2    const FStoreItemsData & InItemsData
3)

function GetVirtualItemsError

Copy
Full screen
Small screen
1void GetVirtualItemsError(
2    int32 StatusCode,
3    int32 ErrorCode,
4    const FString & ErrorMessage
5)

function CallGetVirtualItems

Copy
Full screen
Small screen
1void CallGetVirtualItems()

function GetVirtualCurrenciesCallback

Copy
Full screen
Small screen
1void GetVirtualCurrenciesCallback(
2    const FVirtualCurrencyData & InCurrenciesData
3)

function GetVirtualCurrenciesError

Copy
Full screen
Small screen
1void GetVirtualCurrenciesError(
2    int32 StatusCode,
3    int32 ErrorCode,
4    const FString & ErrorMessage
5)

function CallGetVirtualCurrencies

Copy
Full screen
Small screen
1void CallGetVirtualCurrencies()

function GetVirtualCurrencyPackagesCallback

Copy
Full screen
Small screen
1void GetVirtualCurrencyPackagesCallback(
2    const FVirtualCurrencyPackagesData & InPackagesData
3)

function GetVirtualCurrencyPackagesError

Copy
Full screen
Small screen
1void GetVirtualCurrencyPackagesError(
2    int32 StatusCode,
3    int32 ErrorCode,
4    const FString & ErrorMessage
5)

function CallGetVirtualCurrencyPackages

Copy
Full screen
Small screen
1void CallGetVirtualCurrencyPackages()

function GetAllItemsListBySpecifiedGroupCallback

Copy
Full screen
Small screen
1void GetAllItemsListBySpecifiedGroupCallback(
2    const FStoreItemsList & InItemsList
3)

function GetAllItemsListBySpecifiedGroupError

Copy
Full screen
Small screen
1void GetAllItemsListBySpecifiedGroupError(
2    int32 StatusCode,
3    int32 ErrorCode,
4    const FString & ErrorMessage
5)

function CallGetAllItemsListBySpecifiedGroup

Copy
Full screen
Small screen
1void CallGetAllItemsListBySpecifiedGroup()

function GetBundlesCallback

Copy
Full screen
Small screen
1void GetBundlesCallback(
2    const FStoreListOfBundles & InBundlesData
3)

function GetBundlesError

Copy
Full screen
Small screen
1void GetBundlesError(
2    int32 StatusCode,
3    int32 ErrorCode,
4    const FString & ErrorMessage
5)

function CallGetBundles

Copy
Full screen
Small screen
1void CallGetBundles()

Protected Attributes Documentation

variable ProjectID

FString ProjectID;

Cached Xsolla Store project id.

variable CachedAuthToken

FString CachedAuthToken;

Cached auth token.

variable CachedPaymentTokenRequestPayload

FXsollaPaymentTokenRequestPayload CachedPaymentTokenRequestPayload;

Cached payload.

variable PendingPaystationUrl

FString PendingPaystationUrl;

Pending PayStation URL to be opened in browser.

variable MyBrowser

UXsollaStoreBrowserWrapper * MyBrowser;

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 27, 2026

Found a typo or other text error? Select the text and press Ctrl+Enter.

Contents
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!
We couldn't send your feedback
Try again later or contact us at [email protected].