Skip to content

Commit

Permalink
2.12.14
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 21, 2017
1 parent ed6f3f5 commit 9b7f2fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
10 changes: 9 additions & 1 deletion Payment/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
];}
Expand Down
9 changes: 7 additions & 2 deletions Payment/Source/Options/DisplayMode.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php
namespace Df\Payment\Source\Options;
// 2017-09-21
/** @used-by https://github.com/mage2pro/yandex-kassa/blob/0.1.5/etc/adminhtml/system.xml#L178-L192 */
/**
* 2017-09-21
* *) 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
*/
final class DisplayMode extends \Df\Config\Source {
/**
* 2017-09-21
Expand All @@ -14,6 +18,7 @@ protected function map() {return [self::IMAGES => 'images', 'text' => 'text'];}

/**
* 2017-09-21
* @used-by \Df\Payment\ConfigProvider::configOptions()
* @used-by \Df\Payment\Source\Options\DisplayMode::map()
*/
const IMAGES = 'images';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 9b7f2fc

Please sign in to comment.