Инструменты страницы
HostCMS
With the installed plugin for Host CMS, your customers will be able to pay with you through the payment page of Sberbank.
Installation
To install and configure the payment plugin for HostCMS, follow these steps.
- Log in to the admin panel of the site.
- In the left menu, select Content> Online Stores (see image below).
The following page will be displayed.
- In the list Online Stores click on the link of your online store (see image below).
- On the displayed page, in the top menu, select References > Payment systems – see image below.
The following page will be displayed.
- Click on the Add button.
The following page will be displayed.
- In the General tab specify the basic settings referring to the table below.
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 - Open the file contained in the payment plugin archive using a text editor, for example, using Notepad.
- Copy and paste the contents of the file to the Handler code field.
- Do one of the following:
- To complete the installation and return to configuring later, click the Save button under the payment method editing form.
- To continue with the settings, edit the plugin code in field Handler and then click on the Save button under the payment method editing form.
Configuration
To configure the plugin for HostCMS, follow these steps.
- Log in to the admin panel of the site.
- In the left menu select Content> Online Stores.
- In the Online Stores list, click on the link of your online store.
- From the top menu select References > Payment systems.
A list of installed payment methods will be displayed (see image below).
- Click on the icon next to created payment method:
(Edit) – see images below.
- On the page displayed on the General tab, edit the plugin code in the Handler field referring to the table below.
Editing a plugin
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.
- If the value of a variable is enclosed in single quotes (
'<value>
'), leave them as is.''$user_name''
- The variable value can be expressed as a number without quotes.
$tax_system = 0
- The value can be boolean:
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.