Direct Payment

Direct Payment is a service that provides a direct link to the chosen payment option.

If the link includes all the payment parameters, a user is directed to the option page to complete the payment. If some parameters are lacking, a user is offered to put them in without assistance.

 

Direct link URL:

https://secure.xsolla.com/landings/

Required parameters

Field name

Type

Description

Required?Example

pid

Integer

A payment system ID in Xsolla system. Contact your manager for the payment systems IDs.

Yes

6

project

Integer

An autogenerated project ID in Xsolla system. Contact your manager for the projects IDs, or get them through your Merchant Account.

Yes4783

Example

In order to make a payment to game 4783 (DemoGame) through payment option 6 (WebMoney) click the link:

https://secure.xsolla.com/landings/?pid=6&project=4783
Webmoney
Webmoney

Additional parameters

Also the payment operation needs additional parameters. If the DirectPayment link does not include these parameters, a user is offered to put them in without assistance.

The parameters may be common (for any payment method) and may be specific. The specific parameters list is provided specially.

Field name

Type

Description

Required?Example

out

Float

Amount of virtual currency

separator is "." (2 characters after point)

No
100
currencyString

ISO currency code.In case a payment system has a number of currencies (e.g. WebMoney), set a certain currency for payment.

NoUSD
v1String

User's ID in the game, commonly a user's nick.

Nodemo
v2String

An additional user's ID in the game. It depends on the game settings.

No0
v3String

An additional user's ID in the game. It depends on the game settings.

No0
emailString

User's e-mail.

Nomail@example.com
localeString

Localization. Currently russian (ru) and english (en) localizations are available.

Noen

Example with all parameters:

In order to pay for 10 items of game products in game 4783 (DemoGame) from the user nick v1=demo and e-mail mail@example.com through payment option 6 (WebMoney) click the link:

https://secure.xsolla.com/landings/?pid=6&project=4783&out=10&
currency=RUR&v1=demo&email=mail@example.com
Webmoney
Webmoney

Example with lacking parameters (directing to the lacking parameters request page):

In order to pay for 10 items of game products in game 4783 (DemoGame) through payment option 6 (WebMoney) click the link:

https://secure.xsolla.com/landings/?pid=6&project=4783&out=10&
currency=RUR
Webmoney
Webmoney