post
/v2/project/{project_id}/payment/item/{item_sku}
Creates an order with a specified item. The created order will be given
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
2 Path Parameters
Request Body
Schema
currency
string
The currency which prices are displayed in (USD by default). Three-letter currency code per ISO 4217.
1 validation
locale
string
Response language.
1 validation
sandbox
boolean
Creates an order in the sandbox mode. The option is available for the company users only.
1 validation
settings
object
Custom project settings.
custom_parameters
object
Project specific parameters.
4 validations
Responses
order was successfully created.
1 Example
Schema
order_id
integer
Order ID.
token
string
Payment token.
Send a Test Request
POST
Send requests directly from the browser (CORS must be enabled)
Path Params
project_id
item_sku
$$.env
Authorization