SDKs code references for UE4
Easily embed Xsolla services with this ready-to-use libraries for UE4 applications and games.
|
Public Member Functions | |
virtual void | Initialize (FSubsystemCollectionBase &Collection) override |
virtual void | Deinitialize () override |
void | Initialize (const FString &InProjectId) |
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("")) |
void | GetVirtualItems (const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnStoreItemsUpdate &SuccessCallback, const FOnError &ErrorCallback, const FString &AuthToken=TEXT("")) |
void | GetItemGroups (const FString &PromoCode, const FOnItemGroupsUpdate &SuccessCallback, const FOnError &ErrorCallback) |
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) |
void | GetVirtualCurrencies (const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnVirtualCurrenciesUpdate &SuccessCallback, const FOnError &ErrorCallback) |
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("")) |
void | GetVirtualCurrencyPackages (const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnVirtualCurrencyPackagesUpdate &SuccessCallback, const FOnError &ErrorCallback, const FString &AuthToken=TEXT("")) |
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("")) |
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("")) |
void | GetAllItemsList (const FString &Locale, const FOnGetItemsList &SuccessCallback, const FOnError &ErrorCallback, const FString &AuthToken=TEXT("")) |
void | FetchPaymentToken (const FString &AuthToken, const FString &ItemSKU, const FOnFetchTokenSuccess &SuccessCallback, const FOnError &ErrorCallback, const FXsollaPaymentTokenRequestPayload &PurchaseParams) |
void | FetchCartPaymentToken (const FString &AuthToken, const FString &CartId, const FOnFetchTokenSuccess &SuccessCallback, const FOnError &ErrorCallback, const FXsollaPaymentTokenRequestPayload &PurchaseParams) |
void | LaunchPaymentConsole (UObject *WorldContextObject, const int32 OrderId, const FString &AccessToken, const FOnStoreSuccessPayment &SuccessCallback, const FOnError &ErrorCallback, const FOnStoreBrowserClosed &BrowserClosedCallback, const EXsollaPayStationVersion PayStationVersion=EXsollaPayStationVersion::v4) |
void | PurchaseItemBySku (const FString &AuthToken, const FString &ItemSKU, const FXsollaPaymentTokenRequestPayload &PurchaseParams, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback, const FOnStoreBrowserClosed &BrowserClosedCallback) |
void | PurchaseCart (const FString &AuthToken, const FString &CartId, const FXsollaPaymentTokenRequestPayload &PurchaseParams, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback, const FOnStoreBrowserClosed &BrowserClosedCallback) |
void | PurchaseFreeCart (const FString &AuthToken, const FString &CartId, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | CheckOrder (const FString &AuthToken, const int32 OrderId, const FOnCheckOrder &SuccessCallback, const FOnError &ErrorCallback) |
void | CheckPendingOrder (const FString &AccessToken, const int32 OrderId, const FOnStoreSuccessPayment &SuccessCallback, const FOnError &ErrorCallback, bool bIsUserInvolvedToPayment=false) |
void | CreateOrderWithSpecifiedFreeItem (const FString &AuthToken, const FString &ItemSKU, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback, const int32 Quantity=1) |
void | CreateOrderWithFreeCart (const FString &AuthToken, const FString &CartId, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | PurchaseStoreItem (const FString &AuthToken, const FStoreItem &StoreItem, const FXsollaPaymentTokenRequestPayload &PurchaseParams, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | PurchaseCurrencyPackage (const FString &AuthToken, const FVirtualCurrencyPackage &CurrencyPackage, const FXsollaPaymentTokenRequestPayload &PurchaseParams, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | PurchaseBundle (const FString &AuthToken, const FStoreBundle &Bundle, const FXsollaPaymentTokenRequestPayload &PurchaseParams, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | ClearCart (const FString &AuthToken, const FString &CartId, const FOnStoreCartUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | GetCart (const FString &AuthToken, const FString &CartId, const FString &Currency, const FString &Locale, const FOnCartUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | UpdateItemInCart (const FString &AuthToken, const FString &CartId, const FString &ItemSKU, const int32 Quantity, const FOnStoreCartUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | RemoveFromCart (const FString &AuthToken, const FString &CartId, const FString &ItemSKU, const FOnStoreCartUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | FillCartById (const FString &AuthToken, const FString &CartId, const TArray< FStoreCartItem > &Items, const FOnCartUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | GetSpecifiedBundle (const FString &Sku, const FOnGetSpecifiedBundleUpdate &SuccessCallback, const FOnError &ErrorCallback, const FString &AuthToken=TEXT("")) |
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("")) |
void | GetBundles (const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnGetListOfBundlesUpdate &SuccessCallback, const FOnError &ErrorCallback, const FString &AuthToken=TEXT("")) |
void | GetVirtualCurrency (const FString &CurrencySKU, const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnCurrencyUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | GetVirtualCurrencyPackage (const FString &PackageSKU, const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnCurrencyPackageUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | BuyItemWithVirtualCurrency (const FString &AuthToken, const FString &ItemSKU, const FString &CurrencySKU, const EXsollaPublishingPlatform Platform, const FOnPurchaseUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | GetPromocodeRewards (const FString &AuthToken, const FString &PromocodeCode, const FOnGetPromocodeRewardsUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | RedeemPromocode (const FString &AuthToken, const FString &PromocodeCode, const FString &CartId, const FOnPromocodeUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | RemovePromocodeFromCart (const FString &AuthToken, const FString &CartId, const FOnPromocodeUpdate &SuccessCallback, const FOnError &ErrorCallback) |
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) |
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) |
void | GetGameItem (const FString &GameSKU, const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnGameUpdate &SuccessCallback, const FOnError &ErrorCallback) |
void | GetGameKeyItem (const FString &ItemSKU, const FString &Locale, const FString &Country, const TArray< FString > &AdditionalFields, const FOnGameKeyUpdate &SuccessCallback, const FOnError &ErrorCallback) |
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) |
void | GetDRMList (const FOnDRMListUpdate &SuccessCallback, const FOnError &ErrorCallback) |
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) |
void | RedeemGameCodeByClient (const FString &AuthToken, const FString &Code, const FOnRedeemGameCodeSuccess &SuccessCallback, const FOnError &ErrorCallback) |
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) |
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) |
void | GetSubscriptions (const FString &AuthToken, const FString &Locale, const FOnSubscriptionsListUpdate &SuccessCallback, const FOnError &ErrorCallback, const int Limit=50, const int Offset=0) |
void | GetSubscriptionDetails (const FString &AuthToken, const int32 SubscriptionId, const FString &Locale, const FOnGetSubscriptionDetailsSuccess &SuccessCallback, const FOnError &ErrorCallback) |
void | GetSubscriptionPurchaseUrl (const FString &AuthToken, const FString &PlanExternalId, const FString &Country, const FOnGetSubscriptionPayStationLinkSuccess &SuccessCallback, const FOnError &ErrorCallback) |
void | GetSubscriptionManagementUrl (const FString &AuthToken, const FString &Country, const FOnGetSubscriptionPayStationLinkSuccess &SuccessCallback, const FOnError &ErrorCallback) |
void | GetSubscriptionRenewalUrl (const FString &AuthToken, const int32 SubscriptionId, const FOnGetSubscriptionPayStationLinkSuccess &SuccessCallback, const FOnError &ErrorCallback) |
void | CancelSubscription (const FString &AuthToken, const int32 SubscriptionId, const FOnCancelSubscriptionSuccess &SuccessCallback, const FOnError &ErrorCallback) |
const FString & | GetPendingPaystationUrl () const |
Static Public Member Functions | |
static bool | IsCustomTabsBrowserAvailable (UObject *WorldContextObject) |
static TArray< FStoreItem > | GetVirtualItemsWithoutGroup (const FStoreItemsData &StoreItemsData) |
static FString | GetItemName (const FStoreItemsData &StoreItemsData, const FString &ItemSKU) |
static const FStoreItem & | FindItemBySku (const FStoreItemsData &StoreItemsData, const FString &ItemSku, bool &bHasFound) |
static const FVirtualCurrencyPackage & | FindVirtualCurrencyPackageBySku (const FVirtualCurrencyPackagesData &VirtualCurrencyPackagesData, const FString &ItemSku, bool &bHasFound) |
static bool | IsItemInCart (const FStoreCart &Cart, const FString &ItemSKU) |
Protected Member Functions | |
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 | CancelSubscription_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCancelSubscriptionSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
void | HandleRequestError (XsollaHttpRequestError ErrorData, FOnError ErrorCallback) |
void | HandlePurchaseFreeItemsRequest (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnPurchaseUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
bool | IsSandboxEnabled () const |
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 | |
FString | ProjectID |
FString | CachedAuthToken |
FXsollaPaymentTokenRequestPayload | CachedPaymentTokenRequestPayload |
FString | PendingPaystationUrl |
UXsollaStoreBrowserWrapper * | MyBrowser |
void UXsollaStoreSubsystem::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. The created order will get a new
order status. More about the use cases.
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. |
void UXsollaStoreSubsystem::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). More about the use cases.
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. |
void UXsollaStoreSubsystem::CheckOrder | ( | const FString & | AuthToken, |
const int32 | OrderId, | ||
const FOnCheckOrder & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Checks pending order status by its ID.
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. |
void UXsollaStoreSubsystem::CheckPendingOrder | ( | const FString & | AccessToken, |
const int32 | OrderId, | ||
const FOnStoreSuccessPayment & | SuccessCallback, | ||
const FOnError & | ErrorCallback, | ||
bool | bIsUserInvolvedToPayment = false |
||
) |
Checks pending order.
AccessToken | Payment token used during purchase processing. |
OrderId | Identifier of order. |
SuccessCallback | Called after the payment was successfully completed. |
ErrorCallback | Called after the request resulted with an error. |
bIsUserInvolvedToPayment | Whether payment UI involved in purchase. true for purchase for real currency. false for free item purchase and purchase for virtual currency |
void UXsollaStoreSubsystem::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. More about the use cases.
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. |
void UXsollaStoreSubsystem::CreateOrderWithFreeCart | ( | const FString & | AuthToken, |
const FString & | CartId, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Create order with free cart. The created order will get a done
order status. More about the use cases.
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. |
void UXsollaStoreSubsystem::CreateOrderWithSpecifiedFreeItem | ( | const FString & | AuthToken, |
const FString & | ItemSKU, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback, | ||
const int32 | Quantity = 1 |
||
) |
Create order with specified free item. The created order will get a done
order status. More about the use cases.
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. |
void UXsollaStoreSubsystem::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. Returns the payment token and order ID. More about the use cases.
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 , etc. |
void UXsollaStoreSubsystem::FetchPaymentToken | ( | const FString & | AuthToken, |
const FString & | ItemSKU, | ||
const FOnFetchTokenSuccess & | SuccessCallback, | ||
const FOnError & | ErrorCallback, | ||
const FXsollaPaymentTokenRequestPayload & | PurchaseParams | ||
) |
Initiates an item purchase session and fetches token for payment console. More about the use cases.
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). |
ItemSKU | Desired item SKU. |
SuccessCallback | Called after 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 , etc. |
void UXsollaStoreSubsystem::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. 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.
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. |
|
static |
Returns item with the given SKU.
|
static |
Returns package with the given SKU.
void UXsollaStoreSubsystem::GetAllItemsList | ( | const FString & | Locale, |
const FOnGetItemsList & | SuccessCallback, | ||
const FOnError & | ErrorCallback, | ||
const FString & | AuthToken = TEXT("") |
||
) |
Returns a full list of virtual items. 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.
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. |
void UXsollaStoreSubsystem::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. The list includes bundles which are set to be available for purchase in the store. More about the use cases.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculated based on the user's IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after bundles are successfully received. |
ErrorCallback | Called after the request resulted with an error. |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
void UXsollaStoreSubsystem::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. For each item, complete data is returned. More about the use cases.
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. |
void UXsollaStoreSubsystem::GetDRMList | ( | const FOnDRMListUpdate & | SuccessCallback, |
const FOnError & | ErrorCallback | ||
) |
Returns the list of available DRMs.
SuccessCallback | Called after successful request of specified DRM data. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::GetGameItem | ( | const FString & | GameSKU, |
const FString & | Locale, | ||
const FString & | Country, | ||
const TArray< FString > & | AdditionalFields, | ||
const FOnGameUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns a game item with the specified SKU for the catalog.
GameSKU | Desired game SKU. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculations are based on the user's IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after successful request of specified game data. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::GetGameKeyItem | ( | const FString & | ItemSKU, |
const FString & | Locale, | ||
const FString & | Country, | ||
const TArray< FString > & | AdditionalFields, | ||
const FOnGameKeyUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Get Game Key Item Returns a game key item with the specified SKU for the catalog.
ItemSKU | Desired game item SKU. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculations are based on the user's IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after successful request of specified game data. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::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 list from the specified group for building a catalog.
ExternalId | Group external ID. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculations are based on the user's IP address in not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after successful request of specified game key data. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. |
Offset | Number of the element from which the list is generated (the count starts from 0). |
void UXsollaStoreSubsystem::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.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calcualtions are based on the user's IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after successful request of specified games list data. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. |
Offset | Number of the element from which the list is generated (the count starts from 0). |
void UXsollaStoreSubsystem::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.
ExternalId | Group external ID. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country for which to calculate regional prices and restrictions in a catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculations are based on the user's IP address if the country is not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after successful request of specified game list data. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. |
Offset | Number of the element from which the list is generated (the count starts from 0). |
void UXsollaStoreSubsystem::GetItemGroups | ( | const FString & | PromoCode, |
const FOnItemGroupsUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns a full list of virtual item groups. The list includes groups which are set to be available for purchase in the store More about the use cases.
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. |
|
static |
Returns name of the item with the given SKU.
void UXsollaStoreSubsystem::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. 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.
ExternalId | Group external ID. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. By default, it is determined by the user's IP address. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after server response. |
ErrorCallback | Called after the request resulted with an error. |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
void UXsollaStoreSubsystem::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. The response will contain an array of games owned by a particular user.
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. |
void UXsollaStoreSubsystem::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. 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.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculated based on the user's IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after bundles are successfully received. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. The maximum number of elements on a page is 50. |
Offset | Number of the element from which the list is generated (the count starts from 0). |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
void UXsollaStoreSubsystem::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. 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.
ExternalId | Group external ID. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. By default, it is determined by the user's IP address. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after server response. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. The maximum number of elements on a page is 50. |
Offset | Number of the element from which the list is generated (the count start from 0). |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
void UXsollaStoreSubsystem::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. 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.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. By default, it is determined by the user's IP address. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order and long_description . |
SuccessCallback | Called after virtual currencies were successfully received. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. The maximum number of elements on a page is 50. |
Offset | Number of the element from which the list is generated (the count starts from 0). |
void UXsollaStoreSubsystem::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. 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.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. By default, it is determined by the user's IP address. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after virtual currency packages were successfully received. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. The maximum number of elements on a page is 50. |
Offset | Number of the element from which the list is generated (the count starts from 0). |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
void UXsollaStoreSubsystem::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. 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.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculated based on the user's IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order and long_description . |
SuccessCallback | Called after virtual items were successfully received. |
ErrorCallback | Called after the request resulted with an error. |
Limit | Limit for the number of elements on the page. The maximum number of elements on a page is 50. |
Offset | Number of the element from which the list is generated (the count starts from 0). |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
const FString & UXsollaStoreSubsystem::GetPendingPaystationUrl | ( | ) | const |
Returns the pending PayStation URL to be opened in browser.
void UXsollaStoreSubsystem::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. Allows users to choose from several available items. More about the use cases.
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. |
void UXsollaStoreSubsystem::GetSpecifiedBundle | ( | const FString & | Sku, |
const FOnGetSpecifiedBundleUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback, | ||
const FString & | AuthToken = TEXT("") |
||
) |
Returns information about the contents of the specified bundle. In the bundle settings, display in the store must be enabled. More about the use cases.
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. |
void UXsollaStoreSubsystem::GetSubscriptionDetails | ( | const FString & | AuthToken, |
const int32 | SubscriptionId, | ||
const FString & | Locale, | ||
const FOnGetSubscriptionDetailsSuccess & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns information about a subscription by its ID. Subscription can be have any status. More about the use cases.
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. |
void UXsollaStoreSubsystem::GetSubscriptionManagementUrl | ( | const FString & | AuthToken, |
const FString & | Country, | ||
const FOnGetSubscriptionPayStationLinkSuccess & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns the URL of the management interface for the selected subscription. More about the use cases.
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. |
void UXsollaStoreSubsystem::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. More about the use cases.
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). |
void UXsollaStoreSubsystem::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. More about the use cases.
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). |
void UXsollaStoreSubsystem::GetSubscriptionPurchaseUrl | ( | const FString & | AuthToken, |
const FString & | PlanExternalId, | ||
const FString & | Country, | ||
const FOnGetSubscriptionPayStationLinkSuccess & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns Pay Station URL for the subscription purchase. More about the use cases.
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. |
void UXsollaStoreSubsystem::GetSubscriptionRenewalUrl | ( | const FString & | AuthToken, |
const int32 | SubscriptionId, | ||
const FOnGetSubscriptionPayStationLinkSuccess & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns the URL of the renewal interface for the selected subscription More about the use cases.
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). |
SubscriptionId | Subscription ID. |
SuccessCallback | Called after the URL has been successfully recieved. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::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
. More about the use cases.
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). |
void UXsollaStoreSubsystem::GetVirtualCurrencies | ( | const FString & | Locale, |
const FString & | Country, | ||
const TArray< FString > & | AdditionalFields, | ||
const FOnVirtualCurrenciesUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns a full list of virtual currencies. The list includes currencies which are set to be available for purchase in the store. More about the use cases.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. By default, it is determined by the user's IP address. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order and long_description . |
SuccessCallback | Called after virtual currencies were successfully received. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::GetVirtualCurrency | ( | const FString & | CurrencySKU, |
const FString & | Locale, | ||
const FString & | Country, | ||
const TArray< FString > & | AdditionalFields, | ||
const FOnCurrencyUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns virtual currency with specified SKU.
CurrencySKU | Desired currency SKU. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculated based on the user's IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after successful request of specified virtual currency data. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::GetVirtualCurrencyPackage | ( | const FString & | PackageSKU, |
const FString & | Locale, | ||
const FString & | Country, | ||
const TArray< FString > & | AdditionalFields, | ||
const FOnCurrencyPackageUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Returns a list of virtual currency packages according to pagination settings. 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.
PackageSKU | Desired currency package SKU. |
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculated based on the user's IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order and long_description . |
SuccessCallback | Called after successful request of specified virtual currency package data. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::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. The list includes packages which are set to be available for purchase in the store. More about the use cases.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. By default, it is determined by the user's IP address. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order , and long_description . |
SuccessCallback | Called after virtual currency packages were successfully received. |
ErrorCallback | Called after the request resulted with an error. |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
void UXsollaStoreSubsystem::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. 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.
Locale | Response language. Two-letter lowercase language code. Leave empty to use the default value. |
Country | Country to calculate regional prices and restrictions to catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. Calculated based on the user's IP address if not specified. Check the documentation for detailed information about countries supported by Xsolla. |
AdditionalFields | The list of additional fields. These fields will be in a response if you send it in a request. Available fields media_list , order and long_description . |
SuccessCallback | Called after virtual items were successfully received. |
ErrorCallback | Called after the request resulted with an error. |
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). Can be empty. If specified, the method returns items that match the personalization rules for the current user. |
|
static |
Returns the list of virtual items without any category provided.
|
protected |
Return true if error is happened
void UXsollaStoreSubsystem::Initialize | ( | const FString & | InProjectId | ) |
Initializes the controller with the provided Project ID (used to override project settings).
InProjectId | New Project ID value from Publisher Account. It can be found in Publisher Account next to the name of your project. |
|
static |
Checks whether Custom Tabs can be used on the current Android device to open payment UI. 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.
WorldContextObject | The world context. |
|
static |
Checks if the certain item is in the cart.
|
protected |
Check whether sandbox is enabled
void UXsollaStoreSubsystem::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 access token. More about the use cases:
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. |
void UXsollaStoreSubsystem::PurchaseBundle | ( | const FString & | AuthToken, |
const FStoreBundle & | Bundle, | ||
const FXsollaPaymentTokenRequestPayload & | PurchaseParams, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Initiate purchase by passing bundle
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 , etc. |
SuccessCallback | Called after the payment was successfully completed. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::PurchaseCart | ( | const FString & | AuthToken, |
const FString & | CartId, | ||
const FXsollaPaymentTokenRequestPayload & | PurchaseParams, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback, | ||
const FOnStoreBrowserClosed & | BrowserClosedCallback | ||
) |
Initiates cart purchase by passing cart id
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. |
PurchaseParams | (optional) Purchase and payment UI parameters, such as locale , currency , etc. |
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. |
void UXsollaStoreSubsystem::PurchaseCurrencyPackage | ( | const FString & | AuthToken, |
const FVirtualCurrencyPackage & | CurrencyPackage, | ||
const FXsollaPaymentTokenRequestPayload & | PurchaseParams, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Initiate purchase by passing virtual currency package
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 , etc. |
SuccessCallback | Called after the payment was successfully completed. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::PurchaseFreeCart | ( | const FString & | AuthToken, |
const FString & | CartId, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Initiates free cart purchase by passing cart id
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. |
void UXsollaStoreSubsystem::PurchaseItemBySku | ( | const FString & | AuthToken, |
const FString & | ItemSKU, | ||
const FXsollaPaymentTokenRequestPayload & | PurchaseParams, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback, | ||
const FOnStoreBrowserClosed & | BrowserClosedCallback | ||
) |
Initiates purchase by passing item sku
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 , etc. |
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. |
void UXsollaStoreSubsystem::PurchaseStoreItem | ( | const FString & | AuthToken, |
const FStoreItem & | StoreItem, | ||
const FXsollaPaymentTokenRequestPayload & | PurchaseParams, | ||
const FOnPurchaseUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Initiates purchase by passing store item
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 , etc. |
SuccessCallback | Called after the payment was successfully completed. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::RedeemGameCodeByClient | ( | const FString & | AuthToken, |
const FString & | Code, | ||
const FOnRedeemGameCodeSuccess & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Grants an entitlement by a provided game code.
AuthToken | User authorization token obtained during authorization using Xsolla Login (more about authorization options). |
Code | Game code. |
SuccessCallback | Called after successful redemption. |
ErrorCallback | Called after the request resulted with an error. |
void UXsollaStoreSubsystem::RedeemPromocode | ( | const FString & | AuthToken, |
const FString & | PromocodeCode, | ||
const FString & | CartId, | ||
const FOnPromocodeUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Redeems a promo code. After redeeming the promo code, the user gets free items and/or the price of the cart is reduced. More about the use cases.
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. |
void UXsollaStoreSubsystem::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. More about the use cases.
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. |
void UXsollaStoreSubsystem::RemovePromocodeFromCart | ( | const FString & | AuthToken, |
const FString & | CartId, | ||
const FOnPromocodeUpdate & | SuccessCallback, | ||
const FOnError & | ErrorCallback | ||
) |
Removes a promo code from a cart. 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.
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. |
void UXsollaStoreSubsystem::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. If there is no item with the specified SKU in the cart, it will be added. More about the use cases.
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. |
|
protected |
Cached auth token
|
protected |
Cached payload
|
protected |
Pending PayStation URL to be opened in browser
|
protected |
Cached Xsolla Store project id