For the API call to work correctly, configure a timeout of 2 minutes.
SecuritybasicAuth
Request
path Parameters
project_id
required
integer
Project ID.
user_id
required
string
User ID.
type
required
string
Type of payment account.
Enum:
Description
card
Bank cards.
amazon
Amazon Pay.
skrill
Skrill Digital Wallet.
paypal
PayPal.
toss
Toss Wallet.
alipayplus_cn
Alipay.
alipayplus_hk
Alipay (Hong Kong).
alipayplus_gcash
GCash.
alipayplus_dana
DANA.
alipayplus_rabbitlinepay
Rabbit LINE pay.
alipayplus_tng
Touch 'n Go.
alipayplus_boost
Boost.
account_id
required
integer
ID of the saved account in Xsolla database.
Request Body schema: application/json
object
User details.
ip
required
string
User IP address.
name
string
Username.
object
Object with legal entity details.
name
string
Full legal name.
address
string
Full legal address.
vat_id
string
Individual taxpayer identifier.
country
string
Country of incorporation. Two-letter uppercase country code per ISO 3166-1 alpha-2 is used.
object
Object containing purchase settings.
mode
string
Set to sandbox to test out the payment process. Remove the parameter for real payments.
mock_code
integer
An error code that you want to reproduce when testing the payment process via PayPal in sandbox mode. It works correctly only if you pass the "mode":"sandbox" parameter.
Currency of the purchase. Three-letter currency code per ISO 4217.
amount
integer <float>
Purchase amount.
object
You can pass additional parameters in the token in the custom_parameters object to configure anti-fraud filters. The recommended parameters are shown in the drop-down list. See Pay Station documentation.