With the installed plugin for Host CMS, your customers will be able to pay with you through the payment page of Sberbank.
To install and configure the payment plugin for HostCMS, follow these steps.
Configuration | Description |
---|---|
Name | Enter the name of the payment method. |
Online Store | Select the store from the list to which the payment method will belong. (If you followed the procedure, the need for the title should already be selected.) |
Description | If necessary, enter a description of the payment method. |
Image | If necessary, upload an image that represents a custom payment method in the store. |
Active | Make sure the Active checkbox is checked. |
Handler code |
|
To configure the plugin for HostCMS, follow these steps.
![]() | ![]() |
In the plugin code, settings are represented by variables preceded by a $ sign. To change the value of a variable, enter your value without changing the format. Below are some examples.
'<value>
'), leave them as is.''$user_name''
$tax_system = 0
true
/false
, also indicated without quotes. (Case is irrelevant.) $two_stage = false
Configuration | Description |
---|---|
$user_name |
Login of a service account in a payment gateway with a suffix -api. If the plugin is running in test mode, you should specify the login for the test user account. If the plugin is running in production mode, you should specify the password for the production user account. |
$password |
The password for the service account in the payment gateway. If the plugin is running in test mode, you should specify the password for the test user account. If the plugin is running in standard (production) mode, you should specify the password for the production user account. |
$test_mode |
Allows you to set the plug-in operation mode: test or live (working).
|
$two_stage |
Allows you to set the staging of payments – payments can be one-phase (do not require confirmation from the merchant) or two-phase (for the successful completion of the payment, the merchant must complete it, before that the funds will be held on the buyer's account). |
$send_order |
Allows you to choose whether the shopping cart will be sent and whether a sales receipt will be generated. To be able to use this functionality, please contact your bank representative. For more details see section on compliance with law 54-FZ. |
$tax_system |
Tax system. The following values are available:
This setting is applied only if you have configured fiscalization parameters – see details in section on compliance with law 54-FZ. |
$ffd_version |
The list allows you to specify the used format of fiscal documents, the following options are available:
The format of the version must match the format selected in the personal account of the bank and in the account of the fiscalization service. |
$ffd_paymentMethodType |
Payment type. Possible values:
The settings are effective only if the format of fiscal documents of version 1.05 and higher is selected. |
$ffd_paymentObjectType |
Type of item being paid for. Possible values:
The settings are effective only if the format of fiscal documents of version 1.05 and higher is selected.
Types 6 (gambling winnings) and 8 (lottery winnings) are not used. |
$logging |
Allows you to enable or disable event logging. |
When finished editing, click on the Save button under the payment method editing form.