|
| static void | OpenPurchaseUI (string paymentToken, bool forcePlatformBrowser=false, Action< BrowserCloseInfo > onBrowserClosed=null) |
| | Opens Pay Station in the browser with a retrieved Pay Station token. More...
|
| |
| static void | CheckOrderStatus (int orderId, Action< OrderStatus > onSuccess, Action< Error > onError, SdkType sdkType=SdkType.Store) |
| | Returns status of the specified order. More...
|
| |
| static void | CreatePaymentToken (float amount, string currency, string description, Action< PaymentToken > onSuccess, Action< Error > onError, string locale=null, string externalID=null, int? paymentMethod=null, object customParameters=null) |
| | Creates a new payment token. More...
|
| |
| static void | CreatePaymentToken (float amount, string currency, PaymentTokenItem[] items, Action< PaymentToken > onSuccess, Action< Error > onError, string locale=null, string externalID=null, int? paymentMethod=null, object customParameters=null) |
| | Creates a new payment token. More...
|
| |
| static void | GetUnprocessedEvents (Action< Events > onSuccess, Action< Error > onError) |
| | Get unprocessed events for user. NOTE: Enable the Xsolla Event API before using this method. For setup instructions, see the documentation. More...
|
| |
| static void | MarkEventAsProcessed (int eventId, Action onSuccess, Action< Error > onError) |
| | Mark event as processed. NOTE: Enable the Xsolla Event API before using this method. For setup instructions, see the documentation. More...
|
| |
◆ CheckOrderStatus()
| static void Xsolla.Orders.XsollaOrders.CheckOrderStatus |
( |
int |
orderId, |
|
|
Action< OrderStatus > |
onSuccess, |
|
|
Action< Error > |
onError, |
|
|
SdkType |
sdkType = SdkType.Store |
|
) |
| |
|
inlinestatic |
Returns status of the specified order.
More about the use cases.
- Parameters
-
| orderId | Unique order identifier. |
| onSuccess | Called after server response. |
| onError | Called after the request resulted with an error. |
- See also
- XsollaCatalog.CreateOrderByVirtualCurrency
- Parameters
-
| sdkType | SDK type. Used for internal analytics. |
◆ CreatePaymentToken() [1/2]
| static void Xsolla.Orders.XsollaOrders.CreatePaymentToken |
( |
float |
amount, |
|
|
string |
currency, |
|
|
PaymentTokenItem[] |
items, |
|
|
Action< PaymentToken > |
onSuccess, |
|
|
Action< Error > |
onError, |
|
|
string |
locale = null, |
|
|
string |
externalID = null, |
|
|
int? |
paymentMethod = null, |
|
|
object |
customParameters = null |
|
) |
| |
|
inlinestatic |
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. |
◆ CreatePaymentToken() [2/2]
| static void Xsolla.Orders.XsollaOrders.CreatePaymentToken |
( |
float |
amount, |
|
|
string |
currency, |
|
|
string |
description, |
|
|
Action< PaymentToken > |
onSuccess, |
|
|
Action< Error > |
onError, |
|
|
string |
locale = null, |
|
|
string |
externalID = null, |
|
|
int? |
paymentMethod = null, |
|
|
object |
customParameters = null |
|
) |
| |
|
inlinestatic |
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. |
◆ GetUnprocessedEvents()
| static void Xsolla.Orders.XsollaOrders.GetUnprocessedEvents |
( |
Action< Events > |
onSuccess, |
|
|
Action< Error > |
onError |
|
) |
| |
|
inlinestatic |
Get unprocessed events for user. NOTE: Enable the Xsolla Event 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. |
◆ MarkEventAsProcessed()
| static void Xsolla.Orders.XsollaOrders.MarkEventAsProcessed |
( |
int |
eventId, |
|
|
Action |
onSuccess, |
|
|
Action< Error > |
onError |
|
) |
| |
|
inlinestatic |
Mark event as processed. NOTE: Enable the Xsolla Event 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. |
◆ OpenPurchaseUI()
| static void Xsolla.Orders.XsollaOrders.OpenPurchaseUI |
( |
string |
paymentToken, |
|
|
bool |
forcePlatformBrowser = false, |
|
|
Action< BrowserCloseInfo > |
onBrowserClosed = null |
|
) |
| |
|
inlinestatic |
Opens Pay Station in the browser with a retrieved Pay Station token.
More about the use cases:
- Cart purchase
- Purchase in one click
- Ordering free items
- Parameters
-
| paymentToken | Pay Station token for the purchase. |
| forcePlatformBrowser | Whether to force platform browser usage ignoring plug-in settings. |
| onBrowserClosed | Called after the browser was closed. |
- See also
- XsollaWebBrowser
The documentation for this class was generated from the following file:
- Assets/Xsolla/Orders/XsollaOrders.cs