使用购物车中的所有商品创建订单。创建的订单将获得new
订单状态。
要在新窗口中打开支付UI,请使用以下链接:https://secure.xsolla.com/paystation2/?access_token=ACCESS_TOKEN
,其中ACCESS_TOKEN
是收到的令牌。
如为了测试目的,请使用此URL:https://sandbox-secure.xsolla.com/paystation2/?access_token=ACCESS_TOKEN
。
currency | string 表示价格的货币(默认为美元)。符合ISO 4217的三字母货币代码。 |
custom_parameters | object [ 1 .. 200 ] properties 项目特定参数。 |
locale | string 响应语言。 |
sandbox | boolean Default: false 在沙盒模式下创建订单。该选项适用于公司用户列表中指定的那些用户。 |
object 为用户配置支付流程和支付UI的设置。 | |
object 用户发货数据。 | |
object 选择的送货方式。格式取决于集成的配送提供商。 | |
订单已成功创建。
购物车无效。请检查购物车是否存在,内容不能为空,并且其中的所有商品均非免费。
{- "custom_parameters": {
- "character_id": "ingameUsername"
}, - "sandbox": true,
- "settings": {
- "ui": {
- "desktop": {
- "header": {
- "close_button": false,
- "is_visible": true,
- "type": "normal",
- "visible_logo": true,
- "visible_name": true,
- "visible_purchase": true
}
}, - "mobile": {
- "footer": {
- "is_visible": true
}, - "header": {
- "close_button": false
}
}, - "size": "large",
- "theme": "default",
- "version": "desktop"
}
}
}
{- "order_id": 641,
- "token": "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo"
}