Инструменты страницы
MODX Revolution
For the MODX Revolution payment plugin to function, the miniShop2 component must be installed on MODX Revolution. Plugin compatibility was tested on MODX Revolution version 2.x.
To install and configure the plugin for MODX Revolution, follow these steps.
- Unpack the plugin archive.
- Copy the contents of the
upload
folder to the root of themodx
CMS (Note: not theupload
folder itself, but it's content). - In the MODX Revolution dashboard, select Extras> miniShop2> Settings (see image below).
The following page will be displayed.
- Click on the Create button.
The following window will appear.
- In the fields Name and Handler class, enter RBS.
- Fill in the rest of the fields, and then click on the Save button.
- Edit the file
config.rbs.php
from the plugin archive (see the table below).Configuration Description Login 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).
- If the plugin is running in test mode, in the respective fields (Login and Password) you should specify the data of the test service account.
- If the plugin works in the live mode, in the respective fields (Login and Password) you should specify the data of the live service account.
Two-phase payments The setting determines the staging of payments:
true
– payments will be made by one-phase scheme;false
– payments will be made by two-phase scheme.
Return page for successful payment The URL to which the user will be redirected in case of successful payment.
Return page if payment was unsuccessful The URL to which the user will be redirected in case of unsuccessful payment.
Transfer cart to gateway 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.
Taxation scheme Tax system. The following values are available:
0
– general;1
– simplified, with only revenue taken into account;2
– simplified, the revenue minus the expenditure;3
– unified tax on imputed income;4
– unified agricultural tax;5
– patent tax system.
This setting is applied only if you have configured fiscalization parameters – see details in section on compliance with law 54-FZ.
VAT for items VAT rate. The following values are available:
0
– without VAT;2
– receipt VAT at rate of 10%;3
– receipt VAT at rate of 18%;6
– receipt VAT at rate of 20%;
This setting is applied only if you have configured fiscalization parameters – see details in section on compliance with law 54-FZ.
Fiscal document format version (FFD) The list allows you to specify the used format of fiscal documents, the following options are available:
v10
– FFD 1.0;v105
– FFD 1.05.
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.
Payment type Payment type. Possible values:
1
– full pre-payment before the delivery date of the payment subject;2
– partial pre-payment before the delivery date of the payment subject;- 3 – advance payment;
4
– full payment on the delivery date of the payment subject;5
– partial payment for the payment subject on the delivery date followed by payment on credit;6
– delivery of the payment subject on the delivery date without payment followed by payment on credit;7
– payment for the payment subject after its delivery using payment on credit.
The settings are effective only if the format of fiscal documents of version 1.05 and higher is selected.
Type of item being paid for Type of item being paid for. Possible values:
- 1 – product;
- 2 – excisable product;
- 3 – work;
- 4 – service;
- 5 – gambling bet;
- 7 – lottery ticket;
- 9 – intellectual property;
- 10 – payment;
- 11 – agent's fee;
12
– several subjects;- 13 – other payment subject.
The settings are effective only if the format of fiscal documents of version 1.05 and higher is selected.
Payment gateway addresses The following options are available:
RBS_PROD_URL
– live (production) server;RBS_TEST_URL
– test server.
Logging Allows you to enable or disable event logging.
- Save changes and close the file.