Xsolla::Orders::XsollaOrders

Public Functions

Name
static voidOpenPurchaseUI(string paymentToken, bool forcePlatformBrowser =false, Action< BrowserCloseInfo > onBrowserClosed =null)
Opens Pay Station in the browser with a retrieved Pay Station token.
static voidCheckOrderStatus(int orderId, Action< OrderStatus > onSuccess, Action< Error > onError, SdkType sdkType =SdkType.Store)
Returns status of the specified order.
static voidCreatePaymentToken(float amount, string currency, string description, Action< PaymentToken > onSuccess, Action< Error > onError, string locale =null, string externalID =null, int? paymentMethod =null, object customParameters =null, PurchaseParams purchaseParams =null)
Creates a new payment token.
static voidCreatePaymentToken(float amount, string currency, PaymentTokenItem[] items, Action< PaymentToken > onSuccess, Action< Error > onError, string locale =null, string externalID =null, int? paymentMethod =null, object customParameters =null, PurchaseParams purchaseParams =null)
Creates a new payment token.
static voidGetUnprocessedEvents(Action< Events > onSuccess, Action< Error > onError)
Get unprocessed events for user. NOTE: Enable the XsollaEvent API before using this method. For setup instructions, see the documentation.
static voidMarkEventAsProcessed(int eventId, Action onSuccess, Action< Error > onError)
Mark event as processed. NOTE: Enable the XsollaEvent API before using this method. For setup instructions, see the documentation.

Public Functions Documentation

function OpenPurchaseUI

Copy
Full screen
Small screen
1static void OpenPurchaseUI(
2    string paymentToken,
3    bool forcePlatformBrowser =false,
4    Action< BrowserCloseInfo > onBrowserClosed =null
5)

Opens Pay Station in the browser with a retrieved Pay Station token.

More about the use cases:

forcePlatformBrowserWhether to force platform browser usage ignoring plug-in settings.

onBrowserClosedCalled after the browser was closed.

XsollaWebBrowser

function CheckOrderStatus

Copy
Full screen
Small screen
1static void CheckOrderStatus(
2    int orderId,
3    Action< OrderStatus > onSuccess,
4    Action< Error > onError,
5    SdkType sdkType =SdkType.Store
6)

Returns status of the specified order.

Parameters:

  • orderId Unique order identifier.
  • onSuccess Called after server response.
  • onError Called after the request resulted with an error.
  • sdkType SDK type. Used for internal analytics.

See: XsollaCatalog.CreateOrderByVirtualCurrency

More about the use cases.

function CreatePaymentToken

Copy
Full screen
Small screen
 1static void CreatePaymentToken(
 2    float amount,
 3    string currency,
 4    string description,
 5    Action< PaymentToken > onSuccess,
 6    Action< Error > onError,
 7    string locale =null,
 8    string externalID =null,
 9    int? paymentMethod =null,
10    object customParameters =null,
11    PurchaseParams purchaseParams =null
12)

Creates a new payment token.

Parameters:

  • amount The total amount to be paid by the user.
  • currency Default purchase currency (USD by default). Three-letter currency code per ISO 4217. Check the documentation for detailed information about currencies supported by Xsolla.
  • description Purchase description. Used to describe the purchase if there are no specific items.
  • onSuccess Called after the successful item purchase.
  • onError Called after the request resulted with an error.
  • locale Interface language. Two-letter lowercase language code. Leave empty to use the default value.
  • externalID Transaction’s external ID.
  • paymentMethod Payment method ID.
  • customParameters Project specific parameters represented as a valid JSON set of key-value pairs.
  • purchaseParams Additional purchase parameters used for user payload fields (e.g., mapping to user.mobile_app.install_source and platform metadata).

function CreatePaymentToken

Copy
Full screen
Small screen
 1static void CreatePaymentToken(
 2    float amount,
 3    string currency,
 4    PaymentTokenItem[] items,
 5    Action< PaymentToken > onSuccess,
 6    Action< Error > onError,
 7    string locale =null,
 8    string externalID =null,
 9    int? paymentMethod =null,
10    object customParameters =null,
11    PurchaseParams purchaseParams =null
12)

Creates a new payment token.

Parameters:

  • amount The total amount to be paid by the user.
  • currency Default purchase currency (USD by default). Three-letter currency code per ISO 4217. Check the documentation for detailed information about currencies supported by Xsolla.
  • items Used to describe a purchase if it includes a list of specific items.
  • onSuccess Called after the successful item purchase.
  • onError Called after the request resulted with an error.
  • locale Interface language. Two-letter lowercase language code. Leave empty to use the default value.
  • externalID Transaction’s external ID.
  • paymentMethod Payment method ID.
  • customParameters Project specific parameters represented as a valid JSON set of key-value pairs.
  • purchaseParams Additional purchase parameters used for user payload fields (e.g., mapping to user.mobile_app.install_source and platform metadata).

function GetUnprocessedEvents

Copy
Full screen
Small screen
1static void GetUnprocessedEvents(
2    Action< Events > onSuccess,
3    Action< Error > onError
4)

Get unprocessed events for user. NOTE: Enable the XsollaEvent API before using this method. For setup instructions, see the documentation.

Parameters:

  • onSuccess Called after receiving data successfully.
  • onError Called after the request resulted with an error.

function MarkEventAsProcessed

Copy
Full screen
Small screen
1static void MarkEventAsProcessed(
2    int eventId,
3    Action onSuccess,
4    Action< Error > onError
5)

Mark event as processed. NOTE: Enable the XsollaEvent API before using this method. For setup instructions, see the documentation.

Parameters:

  • eventId Event ID to mark as processed.
  • onSuccess Called after the event was successfully marked as processed.
  • onError Called after the request resulted with an error.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: October 27, 2026

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

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!
We couldn't send your feedback
Try again later or contact us at [email protected].