diff --git a/Payment/ConfigProvider.php b/Payment/ConfigProvider.php index cb4966b55..1192db8ea 100644 --- a/Payment/ConfigProvider.php +++ b/Payment/ConfigProvider.php @@ -3,7 +3,7 @@ use Df\Payment\ConfigProvider\IOptions; use Df\Payment\Settings as S; use Df\Payment\Settings\Options; -use Df\Payment\Source\Options\Location as OL; +use Df\Payment\Source\Options\DisplayMode; use Magento\Checkout\Model\ConfigProviderInterface as IConfigProvider; /** * 2016-08-04 @@ -191,6 +191,14 @@ final protected static function configOptions(IOptions $o) {$s = $o->s(); /** @v ,'options' => $o->options() // 2017-09-19 A text to be shown on the Magento checkout page instead of the payment options dialog. ,'optionsDescription' => $s->v('optionsDescription') + /** + * 2017-09-21 + * «The payment options display mode» (`images` or `text`). + * *) iPay88: https://github.com/mage2pro/ipay88/blob/1.3.3/etc/adminhtml/system.xml#L151-L164 + * *) Robokassa: https://github.com/mage2pro/robokassa/blob/1.2.4/etc/adminhtml/system.xml#L230-L243 + * *) Yandex.Kassa: https://github.com/mage2pro/yandex-kassa/blob/0.1.5/etc/adminhtml/system.xml#L178-L192 + */ + ,'optionsDisplayMode' => $s->v('optionsDisplayMode', null, DisplayMode::IMAGES) // 2017-09-19 A text above the payment options on the Magento checkout page. ,'optionsPrompt' => $s->v('optionsPrompt') ];} diff --git a/Payment/Source/Options/DisplayMode.php b/Payment/Source/Options/DisplayMode.php index 7485c7ce0..bfd2e4ad8 100644 --- a/Payment/Source/Options/DisplayMode.php +++ b/Payment/Source/Options/DisplayMode.php @@ -1,7 +1,11 @@ 'images', 'text' => 'text'];} /** * 2017-09-21 + * @used-by \Df\Payment\ConfigProvider::configOptions() * @used-by \Df\Payment\Source\Options\DisplayMode::map() */ const IMAGES = 'images'; diff --git a/composer.json b/composer.json index 803f7efd1..744349d65 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/core" - ,"version": "2.12.13" + ,"version": "2.12.14" ,"description": "Mage2.PRO core package." ,"type": "magento2-module" ,"homepage": "https://mage2.pro"