diff --git a/README.md b/README.md
index 003c417..e24a121 100644
--- a/README.md
+++ b/README.md
@@ -1,93 +1,110 @@
-# openCart3
+# 🌟 Платёжный модуль PayAnyWay для [OpenCart](https://www.opencart.com/) v3.x
+
+
+
+> **📦 Версия модуля: 1.0.0**
-## Getting started
+> **ℹ️ Совместимость версий OpenCart:**
+> 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.4, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 3.0.3.9, 3.0.4.0, 3.0.4.1, 3.0.5.0
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
+> **ℹ️ Совместимость версий OpenCart "Русская сборка":**
+> 3.0.0.1, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.6, 3.0.3.7, 3.0.3.8, 3.0.3.9, 3.0.4.0, 3.0.4.1, 3.0.5.0
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
+> **ℹ️ Совместимость версий ocStore:**
+> 3.0.2.0, 3.0.3.7, 3.0.3.9
-## Add your files
+> **ℹ️ Примечание по валюте**
+> Данный модуль работает **только с валютой RUB (Российский рубль)**.
+> Перед активацией модуля убедитесь, что на сайте в качестве базовой валюты установлен RUB, либо у пользователя выбран счёт в RUB. Использование других валют не поддерживается.
-* [Create](https://docs.gitlab.com/user/project/repository/web_editor/#create-a-file) or [upload](https://docs.gitlab.com/user/project/repository/web_editor/#upload-a-file) files
-* [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
+## 🏗️ Структура модуля
```
-cd existing_repo
-git remote add origin https://git.moneta.ru:8000/products/cashier/cms/openCart3.git
-git branch -M main
-git push -uf origin main
+├── upload
+│ ├── admin
+│ │ ├── controller/extension/payment/payanyway.php
+│ │ ├── language/{en-gb,ru-ru}/extension/payment/payanyway.php
+│ │ ├── view/image/payment/payanyway.png
+│ │ └── view/template/extension/payment/payanyway.twig
+│ └── catalog
+│ ├── controller/extension/payment/payanyway.php
+│ ├── language/{en-gb,ru-ru}/extension/payment/payanyway.php
+│ ├── model/extension/payment/payanyway.php
+│ └── view/theme/default/template/extension/payment/payanyway.twig
+├── install.xml
+└── README.md
```
-## Integrate with your tools
+## 🚀 Установка и настройка модуля
-* [Set up project integrations](https://git.moneta.ru:8000/products/cashier/cms/openCart3/-/settings/integrations)
+1. 📥 [Скачайте архив модуля](https://git.pub.moneta.ru/CMS/openCart3/releases) и переименуйте в `payanyway.ocmod.zip`.
+2. 📂 Загрузите расширение через панель управления интернет-магазином.
+ Выберите раздел **"Модули / Расширения"** → **"Установка расширений"**. Нажмите "Загрузить" и выберите скачанный архив.
+3. ⚙️ В разделе **"Модули / Расширения"** → **"Модули / Расширения"** выберите тип расширения **"Оплата"**.
+ В списке модулей оплаты найдите **PayAnyWay** и нажмите:
+ - **«Активировать»** — для включения модуля
+ - **«Редактировать»** — для перехода к настройкам
+4. ✏️ Заполните соответствующие поля в настройках способа оплаты:
-## Collaborate with your team
+| Поле | Описание |
+|-------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
+| **Включить модуль оплаты** | Включите или выключите модуль оплаты |
+| **Номер счёта** | Ван номер расширенного счёта в системе [MONETA.RU](https://moneta.ru/) |
+| **Код проверки целостности данных** | Код проверки целостности данных, указанный в настройках расширенного счёта в системе [MONETA.RU](https://moneta.ru/) |
+| **Сервер платежей** | `Боевой` / `Тестовый` |
+| **НДС** | Выберите из списка |
+| **Валюта платежа** | `RUB` |
+| **Статусы заказа** | Выберите соответствующие статусы заказа из списка |
+| **Обрабатываемый** | Укажите статус заказа, который выставляется при его создании |
+| **Успешный** | Укажите статус заказа, который выставляется при успешной оплате |
+| **Неуспешный** | Укажите статус заказа, который выставляется при ошибке оплаты |
+| **Регион отображения** | Географическая зона, в которой будет отображаться способ оплаты |
+| **Порядок сортировки** | Определяет порядок отображения платежного метода в списке методов оплаты при оформлении заказа. Чем меньше число, тем выше позиция в списке |
-* [Invite team members and collaborators](https://docs.gitlab.com/user/project/members/)
-* [Create a new merge request](https://docs.gitlab.com/user/project/merge_requests/creating_merge_requests/)
-* [Automatically close issues from merge requests](https://docs.gitlab.com/user/project/issues/managing_issues/#closing-issues-automatically)
-* [Enable merge request approvals](https://docs.gitlab.com/user/project/merge_requests/approvals/)
-* [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
+---
-## Test and Deploy
+## 🔧 Инструкция по настройке счета PayAnyWay
-Use the built-in continuous integration in GitLab.
+1. 📝 [Зарегистрируйтесь](https://payanyway.ru/partnerRegistration.htm) в платёжной системе PayAnyWay и заполните все необходимые данные. Дождитесь проверки аккаунта и создайте **расширенный счет**.
-* [Get started with GitLab CI/CD](https://docs.gitlab.com/ci/quick_start/)
-* [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/user/application_security/sast/)
-* [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/topics/autodevops/requirements/)
-* [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/user/clusters/agent/)
-* [Set up protected environments](https://docs.gitlab.com/ci/environments/protected_environments/)
+2. ⚙️ Заполните настройки расширенного счета (раздел **«Мой счет» → «Управление счетами» → «Редактировать счет»**):
-***
+| Параметр | Значение |
+|------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| **Тестовый режим** | `Нет` |
+| **Check URL** | `https://your_site_name/index.php?route=extension/payment/payanyway/callback` |
+| **Pay URL** | `https://your_site_name/index.php?route=extension/payment/payanyway/callback` |
+| **HTTP method** | `GET` / `POST` |
+| **Можно переопределять настройки в URL** | `Да` |
+| **Подпись формы оплаты обязательна** | `Да` |
+| **Код проверки целостности данных** | `ваш_код` (произвольный набор символов) |
+| **Success URL** | Оставить пустым |
+| **Fail URL** | Оставить пустым |
+| **InProgress URL** | Необязательное поле. URL страницы магазина, куда должен попасть покупатель после успешного запроса на авторизацию средств, до подтверждения списания и зачисления средств. Поддерживается ограниченным количеством методов оплаты. Переход пользователя произойдет независимо от получения магазином средств и отчета о проведенной оплате |
+| **Return URL** | Оставить пустым |
-# Editing this README
+> ⚠️ **Важно!** Для кириллического домена PayURL и CheckURL должны быть указаны в кодировке [Punycode](https://2ip.ru/punycode/).
-When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
+---
-## Suggestions for a good README
+## 📚 Полезные ресурсы OpenCart
-Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
+* [OpenCart](https://www.opencart.com/)
+* [Документация](https://docs.opencart.com/)
+* [Релизы](https://github.com/opencart/opencart/releases)
-## Name
-Choose a self-explaining name for your project.
+## 📚 Полезные ресурсы OpenCart "Русская сборка"
-## Description
-Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
+* [Русская сборка OpenCart](https://opencart-russia.ru/)
+* [Документация и FAQ](https://forum.opencart-russia.ru/forums/wiki/)
+* [Форум поддержки](https://forum.opencart-russia.ru/)
-## Badges
-On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
+## 📚 Полезные ресурсы OsStore
-## Visuals
-Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
+* [OsStore](https://ocstore.com/)
+* [Форум поддержки](https://opencartforum.com/)
+---
-## Installation
-Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
-
-## Usage
-Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
-
-## Support
-Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
-
-## Roadmap
-If you have ideas for releases in the future, it is a good idea to list them in the README.
-
-## Contributing
-State if you are open to contributions and what your requirements are for accepting them.
-
-For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
-
-You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
-
-## Authors and acknowledgment
-Show your appreciation to those who have contributed to the project.
-
-## License
-For open source projects, say how it is licensed.
-
-## Project status
-If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
+**✅ Модуль настроен, приятных платежей!** 💰🎉
\ No newline at end of file
diff --git a/install.xml b/install.xml
new file mode 100644
index 0000000..10ab807
--- /dev/null
+++ b/install.xml
@@ -0,0 +1,8 @@
+
+
+ PayAnyWay
+ payanyway
+ 1.0.0
+ PayAnyWay
+ https://payanyway.ru/
+
diff --git a/upload/admin/controller/extension/payment/payanyway.php b/upload/admin/controller/extension/payment/payanyway.php
new file mode 100755
index 0000000..9a1a31d
--- /dev/null
+++ b/upload/admin/controller/extension/payment/payanyway.php
@@ -0,0 +1,333 @@
+ '1105',
+ 'vat0' => '1104',
+ 'vat5' => '1108',
+ 'vat7' => '1109',
+ 'vat10' => '1103',
+ 'vat22' => '1113',
+ 'vat105' => '1110',
+ 'vat107' => '1111',
+ 'vat110' => '1107',
+ 'vat122' => '1114'
+ );
+
+ private $error = array();
+
+ /**
+ * @return void
+ * @throws \Exception
+ */
+ public function index() {
+ $this->load->language('extension/payment/payanyway');
+ $this->document->setTitle($this->language->get('heading_title'));
+
+ if (($this->request->server['REQUEST_METHOD'] === 'POST') && $this->validate($this->request)) {
+ $this->load->model('setting/setting');
+ $this->model_setting_setting->editSetting('payment_payanyway', $this->request->post);
+
+ $this->session->data['success'] = $this->language->get('text_success');
+
+ $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true));
+ }
+
+ $data = array();
+ $this->applyValidationErrors($data);
+
+ $data['breadcrumbs'] = $this->getBreadcrumbs();
+ $data['action'] = $this->url->link('extension/payment/payanyway', 'user_token=' . $this->session->data['user_token'], true);
+ $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true);
+
+ $data['payment_payanyway_status'] = $this->retrieveValue('payment_payanyway_status');
+ $data['payment_payanyway_account'] = $this->retrieveValue('payment_payanyway_account');
+ $data['payment_payanyway_integrity_code'] = $this->getIntegrityCode('payment_payanyway_integrity_code');
+ $data['payment_payanyway_server'] = $this->retrieveValue('payment_payanyway_server');
+ $data['payment_payanyway_vat_rates'] = $this->getModuleVatRates();
+ $data['payment_payanyway_vat_rate'] = $this->retrieveValue('payment_payanyway_vat_rate');
+ $data['payment_payanyway_currencies'] = $this->getModuleCurrencies();
+ $data['payment_payanyway_currency'] = $this->retrieveValue('payment_payanyway_currency');
+ $data['order_statuses'] = $this->getAvailableOrderStatuses();
+ $data['payment_payanyway_pending_order_status_id'] = $this->retrieveValue('payment_payanyway_pending_order_status_id');
+ $data['payment_payanyway_success_order_status_id'] = $this->retrieveValue('payment_payanyway_success_order_status_id');
+ $data['payment_payanyway_error_order_status_id'] = $this->retrieveValue('payment_payanyway_error_order_status_id');
+ $data['geo_zones'] = $this->getAvailableGeoZones();
+ $data['payment_payanyway_geo_zone_id'] = $this->retrieveValue('payment_payanyway_geo_zone_id');
+ $data['payment_payanyway_sort_order'] = $this->retrieveValue('payment_payanyway_sort_order');
+ $data['payment_payanyway_cms_module_version'] = $this->getCmsModuleVersion();
+
+ $data['header'] = $this->load->controller('common/header');
+ $data['column_left'] = $this->load->controller('common/column_left');
+ $data['footer'] = $this->load->controller('common/footer');
+
+ $this->response->setOutput($this->load->view('extension/payment/payanyway', $data));
+ }
+
+ /**
+ * @return void
+ * @throws \Exception
+ */
+ public function install() {
+ $defaultSettings = array(
+ 'payment_payanyway_status' => 0,
+ 'payment_payanyway_account' => '',
+ 'payment_payanyway_integrity_code' => '',
+ 'payment_payanyway_server' => 'prod',
+ 'payment_payanyway_sort_order' => 0,
+ 'payment_payanyway_cms_module_version' => $this->getCmsModuleVersion(),
+ );
+
+ $orderStatuses = $this->getAvailableOrderStatuses();
+
+ $pendingStatus = array_filter($orderStatuses, function ($status) {
+ return (int)$status['order_status_id'] === 1;
+ });
+ if (!empty($pendingStatus)) {
+ $pendingKey = key($pendingStatus);
+ $defaultSettings['payment_payanyway_pending_order_status_id'] = $pendingStatus[$pendingKey]['order_status_id'];
+ }
+
+ $successStatus = array_filter($orderStatuses, function ($status) {
+ return (int)$status['order_status_id'] === 5;
+ });
+ if (!empty($successStatus)) {
+ $successKey = key($successStatus);
+ $defaultSettings['payment_payanyway_success_order_status_id'] = $successStatus[$successKey]['order_status_id'];
+ }
+
+ $errorStatus = array_filter($orderStatuses, function ($status) {
+ return (int)$status['order_status_id'] === 10;
+ });
+ if (!empty($errorStatus)) {
+ $errorKey = key($errorStatus);
+ $defaultSettings['payment_payanyway_error_order_status_id'] = $errorStatus[$errorKey]['order_status_id'];
+ }
+
+ $this->load->model('setting/setting');
+ $this->model_setting_setting->editSetting('payment_payanyway', $defaultSettings);
+ }
+
+ /**
+ * @return void
+ * @throws \Exception
+ */
+ public function uninstall() {
+ $this->load->model('setting/setting');
+ $this->model_setting_setting->deleteSetting('payment_payanyway');
+ }
+
+ /**
+ * @param \Request $request
+ * @return bool
+ */
+ private function validate($request) {
+ if (!$this->user->hasPermission('modify', 'extension/payment/payanyway')) {
+ $this->error['warning'] = $this->language->get('error_permission');
+ }
+
+ if (!isset($request->post['payment_payanyway_account']) ||
+ ((int)$request->post['payment_payanyway_account'] <= 0)
+ ) {
+ $this->error['account'] = $this->language->get('error_account');
+ }
+
+ if (empty($request->post['payment_payanyway_integrity_code'])) {
+ $this->error['integrity_code'] = $this->language->get('error_integrity_code');
+ }
+
+ if (empty($request->post['payment_payanyway_pending_order_status_id'])) {
+ $this->error['pending_order_status'] = $this->language->get('error_order_status');
+ }
+ if (empty($request->post['payment_payanyway_success_order_status_id'])) {
+ $this->error['success_order_status'] = $this->language->get('error_order_status');
+ }
+ if (empty($request->post['payment_payanyway_error_order_status_id'])) {
+ $this->error['error_order_status'] = $this->language->get('error_order_status');
+ }
+
+ $sortOrder = isset($request->post['payment_payanyway_sort_order'])
+ ? (int)$request->post['payment_payanyway_sort_order']
+ : self::MODULE_DEFAULT_SORT_ORDER;
+ $request->post['payment_payanyway_sort_order'] = $sortOrder;
+ $request->post['payment_payanyway_cms_module_version'] = $this->getCmsModuleVersion();
+
+ return empty($this->error);
+ }
+
+ /**
+ * @param array $data
+ * @return void
+ */
+ private function applyValidationErrors(array &$data) {
+ $data['error_warning'] = isset($this->error['warning']) ? $this->error['warning'] : '';
+ $data['error_account'] = isset($this->error['account']) ? $this->error['account'] : '';
+ $data['error_integrity_code'] = isset($this->error['integrity_code']) ? $this->error['integrity_code'] : '';
+ $data['error_pending_order_status'] = isset($this->error['pending_order_status']) ? $this->error['pending_order_status'] : '';
+ $data['error_success_order_status'] = isset($this->error['success_order_status']) ? $this->error['success_order_status'] : '';
+ $data['error_error_order_status'] = isset($this->error['error_order_status']) ? $this->error['error_order_status'] : '';
+ }
+
+ /** @return array */
+ private function getBreadcrumbs() {
+ return array(
+ array(
+ 'text' => $this->language->get('text_home'),
+ 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true),
+ ),
+ array(
+ 'text' => $this->language->get('text_extension'),
+ 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true),
+ ),
+ array(
+ 'text' => $this->language->get('heading_title'),
+ 'href' => $this->url->link('extension/payment/payanyway', 'user_token=' . $this->session->data['user_token'], true),
+ ),
+ );
+ }
+
+ /**
+ * @param string $key
+ * @return string
+ */
+ private function getIntegrityCode($key) {
+ $value = $this->retrieveValue($key);
+ if (null === $value) {
+ return '';
+ }
+
+ return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
+ }
+
+ /** @return array */
+ private function getModuleVatRates() {
+ $result = array();
+ foreach ($this->availableVatRates as $vat => $value) {
+ $label = 'entry_' . $vat . '_label';
+ $result[$value] = $this->language->get($label);
+ }
+
+ return $result;
+ }
+
+ /**
+ * @return array
+ * @throws \Exception
+ */
+ private function getModuleCurrencies() {
+ $this->load->model('localisation/currency');
+ $shopCurrencies = $this->model_localisation_currency->getCurrencies();
+
+ $result = array();
+ foreach ($this->supportedCurrencies as $currencyCode) {
+ $result[$currencyCode] = isset($shopCurrencies[$currencyCode])
+ ? $shopCurrencies[$currencyCode]
+ : $this->getDefaultCurrencyDefinition($currencyCode);
+ }
+
+ return $result;
+ }
+
+ /**
+ * @param string $currencyCode
+ * @return array
+ */
+ private function getDefaultCurrencyDefinition($currencyCode) {
+ $definitions = array(
+ 'RUB' => array(
+ 'currency_id' => 0,
+ 'title' => 'Рубль',
+ 'code' => 'RUB',
+ 'symbol_left' => '',
+ 'symbol_right' => '₽',
+ 'decimal_place' => '2',
+ 'value' => 1.00000000,
+ 'status' => '1',
+ 'date_modified' => date('Y-m-d H:i:s'),
+ ),
+ );
+
+ return isset($definitions[$currencyCode]) ? $definitions[$currencyCode] : array();
+ }
+
+ /**
+ * @return array
+ * @throws \Exception
+ */
+ private function getAvailableOrderStatuses() {
+ $this->load->model('localisation/order_status');
+ return $this->model_localisation_order_status->getOrderStatuses();
+ }
+
+ /**
+ * @return array
+ * @throws \Exception
+ */
+ private function getAvailableGeoZones() {
+ $this->load->model('localisation/geo_zone');
+ return $this->model_localisation_geo_zone->getGeoZones();
+ }
+
+ /** @return string */
+ private function getCmsModuleVersion() {
+ $this->load->language('common/footer');
+ $textFooter = $this->language->get('text_footer');
+ $textFooter = is_string($textFooter) ? $textFooter : '';
+
+ $cmsName = $this->detectCmsByPatterns($textFooter);
+ $cmsVersion = defined('VERSION') ? constant('VERSION') : '.unknown';
+
+ return sprintf('%s v%s | %s v%s',
+ $cmsName,
+ $cmsVersion,
+ self::MODULE_NAME,
+ self::MODULE_VERSION
+ );
+ }
+
+ private function detectCmsByPatterns($textFooter) {
+ $patterns = [
+ 'ocStore' => '/ocStore/i',
+ 'Russian OpenCart' => '/opencart-russia/i',
+ self::CMS_NAME => '/opencart\.com/i'
+ ];
+
+ if (!empty($textFooter)) {
+ foreach ($patterns as $cms => $pattern) {
+ if (preg_match($pattern, $textFooter)) {
+ return $cms;
+ }
+ }
+ }
+
+ return self::CMS_NAME;
+ }
+
+ /**
+ * @param string $name
+ * @return mixed
+ */
+ private function retrieveValue($name) {
+ if (!is_string($name)) {
+ throw new \InvalidArgumentException("The name must be a string");
+ }
+
+ if (isset($this->request->post[$name])) {
+ return $this->request->post[$name];
+ }
+
+ return $this->config->get($name);
+ }
+}
diff --git a/upload/admin/language/en-gb/extension/payment/payanyway.php b/upload/admin/language/en-gb/extension/payment/payanyway.php
new file mode 100755
index 0000000..7bc0459
--- /dev/null
+++ b/upload/admin/language/en-gb/extension/payment/payanyway.php
@@ -0,0 +1,58 @@
+';
+
+// Entry
+$_['entry_status_label'] = 'Enable payment module';
+
+$_['entry_account_label'] = 'Account number';
+$_['entry_account_description'] = 'Your extended account number in the MONETA.RU system';
+$_['entry_integrity_code_label'] = 'Integrity Code';
+$_['entry_integrity_code_description'] = 'Data integrity verification code specified in the extended account settings in the MONETA.RU system';
+$_['entry_server_label'] = 'Payment server';
+$_['entry_server_prod_label'] = 'Production';
+$_['entry_server_demo_label'] = 'Demo';
+
+$_['entry_vat_rate_label'] = 'VAT';
+$_['entry_vat_none_label'] = 'Without VAT';
+$_['entry_vat0_label'] = '0%';
+$_['entry_vat5_label'] = '5%';
+$_['entry_vat7_label'] = '7%';
+$_['entry_vat10_label'] = '10%';
+$_['entry_vat22_label'] = '22%';
+$_['entry_vat105_label'] = '5% (calculated rate 5/105)';
+$_['entry_vat107_label'] = '7% (calculated rate 7/107)';
+$_['entry_vat110_label'] = '10% (calculated rate 10/110)';
+$_['entry_vat122_label'] = '22% (calculated rate 22/122)';
+
+$_['entry_currency_label'] = 'Payment acceptance';
+$_['entry_currency_rub_label'] = 'Russian Ruble';
+$_['entry_currency_description'] = 'The currencies in the MONETA.RU system and in the store must match';
+
+$_['entry_select_order_status_label'] = ' --- Select status --- ';
+$_['entry_order_statuses_label'] = 'Order Statuses';
+$_['entry_pending_order_status_label'] = 'Pending';
+$_['entry_success_order_status_label'] = 'Success';
+$_['entry_error_order_status_label'] = 'Error';
+
+$_['entry_geo_zone_label'] = 'Area of display';
+$_['entry_sort_order_label'] = 'Sort Order';
+
+// Help
+$_['help_pending_order_status'] = 'Specify the order status that is set when the order is created';
+$_['help_success_order_status'] = 'Specify the order status that is set upon successful payment';
+$_['help_error_order_status'] = 'Specify the order status that is set upon payment error';
+$_['help_geo_zone'] = 'Geographic area where the payment method will be displayed';
+$_['help_sort_order'] = 'Determines the display order of the payment method. The smaller the number, the higher the position in the list';
+
+// Error
+$_['error_permission'] = 'Warning: You do not have permission to modify payment PayAnyWay!';
+$_['error_account'] = 'Account Number is required and must be greater than 0';
+$_['error_integrity_code'] = 'Account Integrity Code Required';
+$_['error_order_status'] = 'Select order status';
diff --git a/upload/admin/language/ru-ru/extension/payment/payanyway.php b/upload/admin/language/ru-ru/extension/payment/payanyway.php
new file mode 100755
index 0000000..6b2e120
--- /dev/null
+++ b/upload/admin/language/ru-ru/extension/payment/payanyway.php
@@ -0,0 +1,58 @@
+';
+
+// Entry
+$_['entry_status_label'] = 'Включить модуль оплаты';
+
+$_['entry_account_label'] = 'Номер счёта';
+$_['entry_account_description'] = 'Ваш номер расширенного счёта в системе MONETA.RU';
+$_['entry_integrity_code_label'] = 'Код проверки целостности данных';
+$_['entry_integrity_code_description'] = 'Код проверки целостности данных, указанный в настройках расширенного счёта в системе MONETA.RU';
+$_['entry_server_label'] = 'Сервер платежей';
+$_['entry_server_prod_label'] = 'Боевой';
+$_['entry_server_demo_label'] = 'Тестовый';
+
+$_['entry_vat_rate_label'] = 'НДС';
+$_['entry_vat_none_label'] = 'Без НДС';
+$_['entry_vat0_label'] = '0%';
+$_['entry_vat5_label'] = '5%';
+$_['entry_vat7_label'] = '7%';
+$_['entry_vat10_label'] = '10%';
+$_['entry_vat22_label'] = '22%';
+$_['entry_vat105_label'] = '5% (расчётная ставка 5/105)';
+$_['entry_vat107_label'] = '7% (расчётная ставка 7/107)';
+$_['entry_vat110_label'] = '10% (расчётная ставка 10/110)';
+$_['entry_vat122_label'] = '22% (расчётная ставка 22/122)';
+
+$_['entry_currency_label'] = 'Валюта платежа';
+$_['entry_currency_rub_label'] = 'Рубль';
+$_['entry_currency_description'] = 'Валюты в системе MONETA.RU и в магазине должны совпадать';
+
+$_['entry_select_order_status_label'] = ' --- Выберите статус --- ';
+$_['entry_order_statuses_label'] = 'Статусы заказа';
+$_['entry_pending_order_status_label'] = 'Обрабатываемый';
+$_['entry_success_order_status_label'] = 'Успешный';
+$_['entry_error_order_status_label'] = 'Неуспешный';
+
+$_['entry_geo_zone_label'] = 'Регион отображения';
+$_['entry_sort_order_label'] = 'Порядок сортировки';
+
+// Help
+$_['help_pending_order_status'] = 'Укажите статус заказа, который выставляется при его создании';
+$_['help_success_order_status'] = 'Укажите статус заказа, который выставляется при успешной оплате';
+$_['help_error_order_status'] = 'Укажите статус заказа, который выставляется при ошибке оплаты';
+$_['help_geo_zone'] = 'Географическая зона, в которой будет отображаться способ оплаты';
+$_['help_sort_order'] = 'Определяет порядок отображения платежного метода в списке методов оплаты при оформлении заказа. Чем меньше число, тем выше позиция в списке';
+
+// Error
+$_['error_permission'] = 'Недостаточно прав для изменения настроек способа оплаты PayAnyWay';
+$_['error_account'] = 'Номер счёта обязателен';
+$_['error_integrity_code'] = 'Код проверки целостности данных обязателен';
+$_['error_order_status'] = 'Выберите статус заказа';
diff --git a/upload/admin/view/image/payment/payanyway.png b/upload/admin/view/image/payment/payanyway.png
new file mode 100755
index 0000000..724d34b
Binary files /dev/null and b/upload/admin/view/image/payment/payanyway.png differ
diff --git a/upload/admin/view/template/extension/payment/payanyway.twig b/upload/admin/view/template/extension/payment/payanyway.twig
new file mode 100755
index 0000000..45b0db8
--- /dev/null
+++ b/upload/admin/view/template/extension/payment/payanyway.twig
@@ -0,0 +1,237 @@
+{{ header }} {{ column_left }}
+