Payment page templates
Template requirements
When creating your own payment page templates, follow the requirements and file naming rules below.
Core requirements
- Passing the key and payment parameters. The payment page must contain a hidden
Keyfield with the value{key}. Payment parameters are passed through it. - Passing additional parameters. Additional parameters can be passed in the
DATAobject when the session is initialized. To display their values on the page, use the{param}format, where{param}is the parameter name in lowercase. - Error handling. The page HTML must contain a block with the
{error}placeholder, which is used to display errors when the server responds in a non-JSON format. To display errors for a JSON response, use a block withid="errorTop". - Resource location. All links to the resources used (CSS, images, etc.) must have the following form:
/Templates/{Key}/{File}, where{Key}is the Merchant identifier. - No external navigation. The template must not contain links that redirect the user to third-party websites.
- File location when using multiple templates. If multiple templates are used, all resources (CSS, JS, images, etc.) must be stored in a shared folder.
- No external resources. Resources hosted outside the template must not be included. All images, style sheets, and scripts must be supplied with the templates and stored locally.
- Multi-language support. You can use multilingual templates if needed. In this case, the language is passed via the
{Language}parameter in theDATAobject when the session is initialized.
File names
When templates use multiple languages, the {Language} parameter must be inserted into the file path. Two standard values are supported:
- Default: Russian (the default value)
- English: English
The paths to localized files must have the following structure:
/Templates/{Key}/{Language}/{File}where:
{Key}is the Merchant identifier{Language}is the interface language (DefaultorEnglish){File}is the name of the template, image, style, or script file
If you need support for other languages, you can create additional directories within your template library following the same structure. The use of new languages is entirely at the client's discretion and is not regulated by the platform.
The template file name must follow this pattern:
[CUSTOMERS]VWMerchant-Add-MyCustom-English.template| Name part | Value |
|---|---|
[CUSTOMERS] | Interface prefix:MERCHANT for the InPay interfaceCUSTOMERS for the eWallet interface |
VWMerchant | Terminal name in the system. Defaults to Merchant |
Add | Template type:Pay — payment templateAdd — card binding templateReturn — return page (opens after the 3DS check) |
MyCustom | Template name, if multiple templates are used. Defaults to Default |
English | Template language, if templates in different languages are used. Defaults to Default |
.template | Template file extension |
