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:
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. | Yes | 4783 |
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 |
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 |
| currency | String | ISO currency code.In case a payment system has a number of currencies (e.g. WebMoney), set a certain currency for payment. | No | USD |
| v1 | String | User's ID in the game, commonly a user's nick. | No | demo |
| v2 | String | An additional user's ID in the game. It depends on the game settings. | No | 0 |
| v3 | String | An additional user's ID in the game. It depends on the game settings. | No | 0 |
| String | User's e-mail. | No | mail@example.com | |
| locale | String | Localization. Currently russian (ru) and english (en) localizations are available. | No | en |
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& | 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& | Webmoney |
