diff --git a/.version b/.version index 09843e3..7ec1d6d 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.0.9 +2.1.0 diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 776cfc9..eb05cf3 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.1.0] +### Added +- Adding version information in the Tpay configuration view + ## [2.0.9] ### Fixed - Fixed refund scope diff --git a/Model/Config/Source/VersionInfo.php b/Model/Config/Source/VersionInfo.php new file mode 100644 index 0000000..db4ff18 --- /dev/null +++ b/Model/Config/Source/VersionInfo.php @@ -0,0 +1,25 @@ +tpayConfig = $tpayConfig; + parent::__construct($context, $data); + } + + protected function _getElementHtml(AbstractElement $element): string + { + return $this->tpayConfig->buildMagentoInfo(); + } +} diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 0c950be..909bd29 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -179,6 +179,10 @@ Magento\Config\Model\Config\Source\Yesno + + + Tpay\Magento2\Model\Config\Source\VersionInfo + diff --git a/i18n/pl_PL.csv b/i18n/pl_PL.csv index c94d2eb..ac90fcf 100644 --- a/i18n/pl_PL.csv +++ b/i18n/pl_PL.csv @@ -30,6 +30,7 @@ "Maximal amount for method","Maksymalna kwota" "Leave empty for no limit","Puste pole bez ograniczeń" "View bank payments","Widok płatności bankowych" +"Version information","Informacje o wersji" "If you use other currencies visible on the website and pay in PLN, turn it on/off","W przypadku korzystania z innych walut widocznych na stronie i płatności w PLN należy włączyć/wyłączyć" "Type in 6 digit code and press pay to commit blik payment.", "Wpisz 6 cyfrowy kod aby powiązać transakcję blik." "Choose a payment method","Wybierz jeden ze sposobów płatności"