UXsollaStoreSubsystem
Inherits from UGameInstanceSubsystem
Public Functions
| Name | |
|---|---|
| UXsollaStoreSubsystem () | |
| virtual void | Initialize (FSubsystemCollectionBase & Collection) override |
| virtual void | Deinitialize () override |
| void | Initialize
(const FString & InProjectId) Initializes the controller with the provided Project ID (used to override project settings). |
| void | GetPaginatedVirtualItems
(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. |
| void | GetVirtualItems
(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. |
| void | GetItemGroups
(const FString & PromoCode, const FOnItemGroupsUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns a full list of virtual item groups. |
| void | GetPaginatedVirtualCurrencies
(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. |
| void | GetVirtualCurrencies
(const FString & Locale, const FString & Country, const TArray< FString > & AdditionalFields, const FOnVirtualCurrenciesUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns a full list of virtual currencies. |
| void | GetPaginatedVirtualCurrencyPackages
(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. |
| void | GetVirtualCurrencyPackages
(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. |
| void | GetPaginatedItemsListBySpecifiedGroup
(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. |
| void | GetItemsListBySpecifiedGroup
(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. |
| void | GetAllItemsList
(const FString & Locale, const FOnGetItemsList & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT("")) Returns a full list of virtual items. |
| void | FetchPaymentToken
(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. |
| void | FetchCartPaymentToken
(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. |
| void | LaunchPaymentConsole
(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. |
| void | PurchaseItemBySku
(const FString & AuthToken, const FString & ItemSKU, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback, const FOnStoreBrowserClosed & BrowserClosedCallback) Initiates purchase for specified item SKU. |
| void | PurchaseCart
(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. |
| void | PurchaseFreeCart
(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. |
| void | CheckOrder
(const FString & AuthToken, const int32 OrderId, const FOnCheckOrder & SuccessCallback, const FOnError & ErrorCallback) Checks pending order status by its ID. |
| void | CheckPendingOrder
(const FString & AccessToken, const int32 OrderId, const FOnStoreSuccessPayment & SuccessCallback, const FOnError & ErrorCallback, bool bIsUserInvolvedToPayment =false) Checks pending order. |
| void | CreateOrderWithSpecifiedFreeItem
(const FString & AuthToken, const FString & ItemSKU, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback, const int32 Quantity =1) Create order with specified free item. |
| void | CreateOrderWithFreeCart
(const FString & AuthToken, const FString & CartId, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback) Create order with free cart. |
| void | PurchaseStoreItem
(const FString & AuthToken, const FStoreItem
& StoreItem, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback) Initiates purchase process for specified store item. |
| void | PurchaseCurrencyPackage
(const FString & AuthToken, const FVirtualCurrencyPackage
& CurrencyPackage, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback) Initiate purchase process for specified currency package. |
| void | PurchaseBundle
(const FString & AuthToken, const FStoreBundle
& Bundle, const FXsollaPaymentTokenRequestPayload & PurchaseParams, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback) Initiate purchase process for specified bundle. |
| void | ClearCart
(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. |
| void | GetCart
(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. |
| void | UpdateItemInCart
(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. |
| void | RemoveFromCart
(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. |
| void | FillCartById
(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. |
| void | GetSpecifiedBundle
(const FString & Sku, const FOnGetSpecifiedBundleUpdate & SuccessCallback, const FOnError & ErrorCallback, const FString & AuthToken =TEXT("")) Returns information about the contents of the specified bundle. |
| void | GetPaginatedBundles
(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. |
| void | GetBundles
(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. |
| void | GetVirtualCurrency
(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. |
| void | GetVirtualCurrencyPackage
(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. |
| void | BuyItemWithVirtualCurrency
(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. |
| void | GetPromocodeRewards
(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. |
| void | RedeemPromocode
(const FString & AuthToken, const FString & PromocodeCode, const FString & CartId, const FOnPromocodeUpdate & SuccessCallback, const FOnError & ErrorCallback) Redeems a promo code. |
| void | RemovePromocodeFromCart
(const FString & AuthToken, const FString & CartId, const FOnPromocodeUpdate & SuccessCallback, const FOnError & ErrorCallback) Removes a promo code from a cart. |
| void | GetGamesList
(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. |
| void | GetGamesListBySpecifiedGroup
(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. |
| void | GetGameItem
(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. |
| void | GetGameKeyItem
(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. |
| void | GetGameKeysListBySpecifiedGroup
(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. |
| void | GetDRMList
(const FOnDRMListUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns the list of available DRMs. |
| void | GetOwnedGames
(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. |
| void | RedeemGameCodeByClient
(const FString & AuthToken, const FString & Code, const FOnRedeemGameCodeSuccess & SuccessCallback, const FOnError & ErrorCallback) Grants an entitlement by a provided game key. |
| void | GetSubscriptionPublicPlans
(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. |
| void | GetSubscriptionPlans
(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. |
| void | GetSubscriptions
(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. |
| void | GetSubscriptionDetails
(const FString & AuthToken, const int32 SubscriptionId, const FString & Locale, const FOnGetSubscriptionDetailsSuccess & SuccessCallback, const FOnError & ErrorCallback) Returns information about a subscription by its ID. |
| void | GetSubscriptionPurchaseUrl
(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. |
| void | GetSubscriptionPurchaseUrl
(const FString & AuthToken, const FString & PlanExternalId, const FString & Country, const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback, const FOnError & ErrorCallback) Backward-compatible C++ overload without optional payload fields. |
| void | GetSubscriptionManagementUrl
(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. |
| void | GetSubscriptionManagementUrl
(const FString & AuthToken, const FString & Country, const FOnGetSubscriptionPayStationLinkSuccess & SuccessCallback, const FOnError & ErrorCallback) Backward-compatible C++ overload without optional payload fields. |
| void | GetSubscriptionRenewalUrl
(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. |
| void | GetSubscriptionUserAccountUrl
(const FString & AuthToken, const FString & Locale, const FOnGetSubscriptionUserAccountUrlSuccess & SuccessCallback, const FOnError & ErrorCallback) Returns URL of the user account interface for subscription management. |
| void | CancelSubscription
(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 bool | IsCustomTabsBrowserAvailable
(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 FString | GetItemName
(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 bool | IsItemInCart
(const FStoreCart
& Cart, const FString & ItemSKU) Checks if the certain item is in the cart. |
Protected Functions
| Name | |
|---|---|
| void | GetVirtualItems_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreItemsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetItemGroups_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnItemGroupsUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetVirtualCurrencies_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnVirtualCurrenciesUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetVirtualCurrencyPackages_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnVirtualCurrencyPackagesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetItemsListBySpecifiedGroup_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetItemsListBySpecifiedGroup SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetAllItemsList_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetItemsList SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | FetchPaymentToken_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnFetchTokenSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | CheckOrder_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCheckOrder SuccessCallback, FOnError ErrorCallback) |
| void | CreateOrderWithSpecifiedFreeItem_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | CreateOrderWithFreeCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | ClearCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UpdateItemInCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | RemoveFromCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | FillCartById_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCartUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetListOfBundles_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetListOfBundlesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetSpecifiedBundle_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSpecifiedBundleUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetVirtualCurrency_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCurrencyUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetVirtualCurrencyPackage_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCurrencyPackageUpdate SuccessCallback, FOnError ErrorCallback) |
| void | BuyItemWithVirtualCurrency_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetPromocodeRewards_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetPromocodeRewardsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | RedeemPromocode_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPromocodeUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | RemovePromocodeFromCart_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPromocodeUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetGamesList_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStoreGamesUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetGamesListBySpecifiedGroup_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetGamesListBySpecifiedGroup SuccessCallback, FOnError ErrorCallback) |
| void | GetGameItem_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGameUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetGameKeyItem_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGameKeyUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetGameKeysListBySpecifiedGroup_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetGameKeysListBySpecifiedGroup SuccessCallback, FOnError ErrorCallback) |
| void | GetDRMList_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnDRMListUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetOwnedGames_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnOwnedGamesListUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | RedeemGameCodeByClient_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRedeemGameCodeSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetSubscriptionPublicPlans_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSubscriptionPublicPlansListUpdate SuccessCallback, FOnError ErrorCallback) |
| void | GetSubscriptionPlans_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSubscriptionPlansListUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetSubscriptions_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSubscriptionsListUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetSubscriptionDetails_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSubscriptionDetailsSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetSubscriptionPaystationLink_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSubscriptionPayStationLinkSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetSubscriptionUserAccountUrl_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnGetSubscriptionUserAccountUrlSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | CancelSubscription_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCancelSubscriptionSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | HandleRequestError
(XsollaHttpRequestError ErrorData, FOnError ErrorCallback) Handles HTTP request errors by logging them and invoking the error callback. |
| void | HandlePurchaseFreeItemsRequest (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| bool | IsSandboxEnabled
() const Check whether sandbox is enabled. |
| void | InnerPurchase (const FString & AuthToken, const FString & Sku, bool bIsFree, const TArray< FXsollaVirtualCurrencyPrice > & VirtualPrices, const FXsollaPaymentTokenRequestPayload PaymentTokenRequestPayload, const FOnPurchaseUpdate & SuccessCallback, const FOnError & ErrorCallback) |
| void | FetchTokenCallback (const FString & AccessToken, int32 InOrderId) |
| void | BuyVirtualOrFreeItemCallback (int32 InOrderId) |
| void | CheckPendingOrderSuccessCallback () |
| void | BrowserClosedCallback (bool bIsManually) |
| void | GetVirtualItemsCallback (const FStoreItemsData & InItemsData) |
| void | GetVirtualItemsError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage) |
| void | CallGetVirtualItems () |
| void | GetVirtualCurrenciesCallback (const FVirtualCurrencyData & InCurrenciesData) |
| void | GetVirtualCurrenciesError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage) |
| void | CallGetVirtualCurrencies () |
| void | GetVirtualCurrencyPackagesCallback (const FVirtualCurrencyPackagesData & InPackagesData) |
| void | GetVirtualCurrencyPackagesError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage) |
| void | CallGetVirtualCurrencyPackages () |
| void | GetAllItemsListBySpecifiedGroupCallback (const FStoreItemsList & InItemsList) |
| void | GetAllItemsListBySpecifiedGroupError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage) |
| void | CallGetAllItemsListBySpecifiedGroup () |
| void | GetBundlesCallback (const FStoreListOfBundles & InBundlesData) |
| void | GetBundlesError (int32 StatusCode, int32 ErrorCode, const FString & ErrorMessage) |
| void | CallGetBundles () |
Protected Attributes
| Name | |
|---|---|
| FString | ProjectID Cached Xsolla Store project id. |
| FString | CachedAuthToken Cached auth token. |
| FXsollaPaymentTokenRequestPayload | CachedPaymentTokenRequestPayload Cached payload. |
| FString | PendingPaystationUrl Pending PayStation URL to be opened in browser. |
| UXsollaStoreBrowserWrapper * | MyBrowser |
Public Functions Documentation
function UXsollaStoreSubsystem
- C++
1UXsollaStoreSubsystem()
function Initialize
- C++
1virtual void Initialize(
2 FSubsystemCollectionBase & Collection
3) override
function Deinitialize
- C++
1virtual void Deinitialize() override
function Initialize
- C++
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
- C++
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,orderandlong_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
- C++
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,orderandlong_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
- C++
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
- C++
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,orderandlong_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
- C++
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,orderandlong_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
- C++
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, andlong_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
- C++
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, andlong_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
- C++
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, andlong_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
- C++
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, andlong_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
- C++
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
- C++
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, andbUseSteamOverlayForDesktop.
function FetchCartPaymentToken
- C++
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, andbUseSteamOverlayForDesktop.
Returns the payment token and order ID. More about the use cases .
function LaunchPaymentConsole
- C++
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
- C++
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, andbUseSteamOverlayForDesktop. - 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
- C++
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, andbUseSteamOverlayForDesktop. - 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
- C++
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
- C++
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
- C++
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.
truefor purchase for real currency.falsefor free item purchase and purchase for virtual currency
function CreateOrderWithSpecifiedFreeItem
- C++
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
- C++
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
- C++
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, andbUseSteamOverlayForDesktop. - SuccessCallback Called after the payment was successfully completed.
- ErrorCallback Called after the request resulted with an error.
function PurchaseCurrencyPackage
- C++
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, andbUseSteamOverlayForDesktop. - SuccessCallback Called after the payment was successfully completed.
- ErrorCallback Called after the request resulted with an error.
function PurchaseBundle
- C++
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, andbUseSteamOverlayForDesktop. - SuccessCallback Called after the payment was successfully completed.
- ErrorCallback Called after the request resulted with an error.
function ClearCart
- C++
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.
function GetCart
- C++
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
- C++
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
- C++
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.
function FillCartById
- C++
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
- C++
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
- C++
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, andlong_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
- C++
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, andlong_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
- C++
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, andlong_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
- C++
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,orderandlong_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
- C++
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
- C++
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
- C++
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
- C++
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
- C++
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, andlong_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
- C++
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, andlong_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
- C++
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, andlong_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
- C++
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
- C++
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, andlong_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
- C++
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
- C++
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
- C++
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
- C++
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).
function GetSubscriptionPlans
- C++
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).
function GetSubscriptions
- C++
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).
function GetSubscriptionDetails
- C++
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
- C++
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.
function GetSubscriptionPurchaseUrl
- C++
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
- C++
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.
function GetSubscriptionManagementUrl
- C++
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
- C++
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.
function GetSubscriptionUserAccountUrl
- C++
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.
function CancelSubscription
- C++
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.
function GetPendingPaystationUrl
- C++
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
- C++
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
- C++
1static TArray< FStoreItem > GetVirtualItemsWithoutGroup(
2 const FStoreItemsData & StoreItemsData
3)
Returns a list of virtual items that are not assigned to any group.
function GetItemName
- C++
1static FString GetItemName(
2 const FStoreItemsData & StoreItemsData,
3 const FString & ItemSKU
4)
Returns name of the item with the given SKU.
function FindItemBySku
- C++
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
- C++
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
- C++
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
- C++
1void GetVirtualItems_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnStoreItemsUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetItemGroups_HttpRequestComplete
- C++
1void GetItemGroups_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnItemGroupsUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetVirtualCurrencies_HttpRequestComplete
- C++
1void GetVirtualCurrencies_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnVirtualCurrenciesUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetVirtualCurrencyPackages_HttpRequestComplete
- C++
1void GetVirtualCurrencyPackages_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnVirtualCurrencyPackagesUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetItemsListBySpecifiedGroup_HttpRequestComplete
- C++
1void GetItemsListBySpecifiedGroup_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetItemsListBySpecifiedGroup SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetAllItemsList_HttpRequestComplete
- C++
1void GetAllItemsList_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetItemsList SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function FetchPaymentToken_HttpRequestComplete
- C++
1void FetchPaymentToken_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnFetchTokenSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function CheckOrder_HttpRequestComplete
- C++
1void CheckOrder_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCheckOrder SuccessCallback,
6 FOnError ErrorCallback
7)
function CreateOrderWithSpecifiedFreeItem_HttpRequestComplete
- C++
1void CreateOrderWithSpecifiedFreeItem_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnPurchaseUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function CreateOrderWithFreeCart_HttpRequestComplete
- C++
1void CreateOrderWithFreeCart_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnPurchaseUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function ClearCart_HttpRequestComplete
- C++
1void ClearCart_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnStoreCartUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetCart_HttpRequestComplete
- C++
1void GetCart_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCartUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UpdateItemInCart_HttpRequestComplete
- C++
1void UpdateItemInCart_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnStoreCartUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function RemoveFromCart_HttpRequestComplete
- C++
1void RemoveFromCart_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnStoreCartUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function FillCartById_HttpRequestComplete
- C++
1void FillCartById_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCartUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetListOfBundles_HttpRequestComplete
- C++
1void GetListOfBundles_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetListOfBundlesUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetSpecifiedBundle_HttpRequestComplete
- C++
1void GetSpecifiedBundle_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetSpecifiedBundleUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetVirtualCurrency_HttpRequestComplete
- C++
1void GetVirtualCurrency_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCurrencyUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetVirtualCurrencyPackage_HttpRequestComplete
- C++
1void GetVirtualCurrencyPackage_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCurrencyPackageUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function BuyItemWithVirtualCurrency_HttpRequestComplete
- C++
1void BuyItemWithVirtualCurrency_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnPurchaseUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetPromocodeRewards_HttpRequestComplete
- C++
1void GetPromocodeRewards_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetPromocodeRewardsUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function RedeemPromocode_HttpRequestComplete
- C++
1void RedeemPromocode_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnPromocodeUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function RemovePromocodeFromCart_HttpRequestComplete
- C++
1void RemovePromocodeFromCart_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnPromocodeUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetGamesList_HttpRequestComplete
- C++
1void GetGamesList_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnStoreGamesUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetGamesListBySpecifiedGroup_HttpRequestComplete
- C++
1void GetGamesListBySpecifiedGroup_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetGamesListBySpecifiedGroup SuccessCallback,
6 FOnError ErrorCallback
7)
function GetGameItem_HttpRequestComplete
- C++
1void GetGameItem_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGameUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetGameKeyItem_HttpRequestComplete
- C++
1void GetGameKeyItem_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGameKeyUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetGameKeysListBySpecifiedGroup_HttpRequestComplete
- C++
1void GetGameKeysListBySpecifiedGroup_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetGameKeysListBySpecifiedGroup SuccessCallback,
6 FOnError ErrorCallback
7)
function GetDRMList_HttpRequestComplete
- C++
1void GetDRMList_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnDRMListUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetOwnedGames_HttpRequestComplete
- C++
1void GetOwnedGames_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnOwnedGamesListUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function RedeemGameCodeByClient_HttpRequestComplete
- C++
1void RedeemGameCodeByClient_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnRedeemGameCodeSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetSubscriptionPublicPlans_HttpRequestComplete
- C++
1void GetSubscriptionPublicPlans_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnSubscriptionPublicPlansListUpdate SuccessCallback,
6 FOnError ErrorCallback
7)
function GetSubscriptionPlans_HttpRequestComplete
- C++
1void GetSubscriptionPlans_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnSubscriptionPlansListUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetSubscriptions_HttpRequestComplete
- C++
1void GetSubscriptions_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnSubscriptionsListUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetSubscriptionDetails_HttpRequestComplete
- C++
1void GetSubscriptionDetails_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetSubscriptionDetailsSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetSubscriptionPaystationLink_HttpRequestComplete
- C++
1void GetSubscriptionPaystationLink_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetSubscriptionPayStationLinkSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetSubscriptionUserAccountUrl_HttpRequestComplete
- C++
1void GetSubscriptionUserAccountUrl_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnGetSubscriptionUserAccountUrlSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function CancelSubscription_HttpRequestComplete
- C++
1void CancelSubscription_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCancelSubscriptionSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function HandleRequestError
- C++
1void HandleRequestError(
2 XsollaHttpRequestError ErrorData,
3 FOnError ErrorCallback
4)
Handles HTTP request errors by logging them and invoking the error callback.
function HandlePurchaseFreeItemsRequest
- C++
1void HandlePurchaseFreeItemsRequest(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnPurchaseUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function IsSandboxEnabled
- C++
1bool IsSandboxEnabled() const
Check whether sandbox is enabled.
function InnerPurchase
- C++
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
- C++
1void FetchTokenCallback(
2 const FString & AccessToken,
3 int32 InOrderId
4)
function BuyVirtualOrFreeItemCallback
- C++
1void BuyVirtualOrFreeItemCallback(
2 int32 InOrderId
3)
function CheckPendingOrderSuccessCallback
- C++
1void CheckPendingOrderSuccessCallback()
function BrowserClosedCallback
- C++
1void BrowserClosedCallback(
2 bool bIsManually
3)
function GetVirtualItemsCallback
- C++
1void GetVirtualItemsCallback(
2 const FStoreItemsData & InItemsData
3)
function GetVirtualItemsError
- C++
1void GetVirtualItemsError(
2 int32 StatusCode,
3 int32 ErrorCode,
4 const FString & ErrorMessage
5)
function CallGetVirtualItems
- C++
1void CallGetVirtualItems()
function GetVirtualCurrenciesCallback
- C++
1void GetVirtualCurrenciesCallback(
2 const FVirtualCurrencyData & InCurrenciesData
3)
function GetVirtualCurrenciesError
- C++
1void GetVirtualCurrenciesError(
2 int32 StatusCode,
3 int32 ErrorCode,
4 const FString & ErrorMessage
5)
function CallGetVirtualCurrencies
- C++
1void CallGetVirtualCurrencies()
function GetVirtualCurrencyPackagesCallback
- C++
1void GetVirtualCurrencyPackagesCallback(
2 const FVirtualCurrencyPackagesData & InPackagesData
3)
function GetVirtualCurrencyPackagesError
- C++
1void GetVirtualCurrencyPackagesError(
2 int32 StatusCode,
3 int32 ErrorCode,
4 const FString & ErrorMessage
5)
function CallGetVirtualCurrencyPackages
- C++
1void CallGetVirtualCurrencyPackages()
function GetAllItemsListBySpecifiedGroupCallback
- C++
1void GetAllItemsListBySpecifiedGroupCallback(
2 const FStoreItemsList & InItemsList
3)
function GetAllItemsListBySpecifiedGroupError
- C++
1void GetAllItemsListBySpecifiedGroupError(
2 int32 StatusCode,
3 int32 ErrorCode,
4 const FString & ErrorMessage
5)
function CallGetAllItemsListBySpecifiedGroup
- C++
1void CallGetAllItemsListBySpecifiedGroup()
function GetBundlesCallback
- C++
1void GetBundlesCallback(
2 const FStoreListOfBundles & InBundlesData
3)
function GetBundlesError
- C++
1void GetBundlesError(
2 int32 StatusCode,
3 int32 ErrorCode,
4 const FString & ErrorMessage
5)
function CallGetBundles
- C++
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;
Found a typo or other text error? Select the text and press Ctrl+Enter.