Creates an order with all items from the particular cart. The created order will get a new
order status.
To open the payment UI in a new window, use the following link: https://secure.xsolla.com/paystation2/?access_token=ACCESS_TOKEN
, where ACCESS_TOKEN
is the received token.
For testing purposes, use this URL: https://sandbox-secure.xsolla.com/paystation2/?access_token=ACCESS_TOKEN
.
currency | string The currency which prices are displayed in (USD by default). Three-letter currency code per ISO 4217. | ||||||||||||||||||||||||||||||||||||||||||||
locale | string Response language. | ||||||||||||||||||||||||||||||||||||||||||||
sandbox | boolean Default: false Creates an order in the sandbox mode. The option is available for those users who are specified in the list of company users. | ||||||||||||||||||||||||||||||||||||||||||||
object Settings for configuring payment process and the payment UI for a user. | |||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||
custom_parameters | object [ 1 .. 200 ] properties Project specific parameters. | ||||||||||||||||||||||||||||||||||||||||||||
object User shipping data. | |||||||||||||||||||||||||||||||||||||||||||||
object Selected shipping method. The format depends on the integrated delivery provider. | |||||||||||||||||||||||||||||||||||||||||||||
Order was successfully created.
Invalid cart. Check that cart exists, not empty, and all items in it are not free.
{- "sandbox": true,
- "settings": {
- "ui": {
- "theme": "63295a9a2e47fab76f7708e1",
- "desktop": {
- "header": {
- "is_visible": true,
- "visible_logo": true,
- "visible_name": true,
- "visible_purchase": true,
- "type": "normal",
- "close_button": false
}
}
}
}, - "custom_parameters": {
- "character_id": "ingameUsername"
}
}
{- "order_id": 641,
- "token": "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo"
}