Merchant
Webhooks
Pre-Orders
Catalog
Entitlement
Admin
Admin
Catalog
Virtual Payment
Client
Management
Cross-Inventory
Catalog
Admin
Delivery Prices
Admin
Catalog
Common
Coupons
Promo Codes
Discounts
Bonuses
post

/v2/project/{project_id}/payment/cart

Creates an order with all items from the 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.

Authorization

apiKey - Authorization

Request Parameters

1 Path Parameter

Request Body

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
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

Creates an order in the sandbox mode. The option is available for those users who are specified in the list of company users.

1 validation
settings
object

Custom project settings.

custom_parameters
object

Project specific parameters.

2 validations
shipping_data
object

User shipping data.

1 validation
shipping_method
object

Selected shipping method. The format depends on the integrated delivery provider.

1 validation

Responses

Order was successfully created.

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
order_id
integer

Order ID.

token
string

Payment token.

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
project_id
$$.env
Authorization