From b471828fdc9bc00586984ec2ea08589be43d6d26 Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Fri, 1 Sep 2017 18:32:26 +0300 Subject: [PATCH] 2.11.5 --- Core/lib/text.php | 1 + Payment/W/Event.php | 3 +++ Payment/lib/card-formatter.php | 10 ++++++++++ StripeClone/CardFormatter.php | 2 +- composer.json | 2 +- 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Payment/lib/card-formatter.php diff --git a/Core/lib/text.php b/Core/lib/text.php index 64a7cb56d..e488b2c4e 100644 --- a/Core/lib/text.php +++ b/Core/lib/text.php @@ -901,6 +901,7 @@ function df_trim($s, $charlist = null, $throw = false) {return df_try(function() * @used-by df_trim_ds_left() * @used-by df_url_bp() * @used-by \Df\Config\Settings::phpNameToKey() + * @used-by \Dfe\PostFinance\W\Event::cardNumber() * @param string $s * @param string $charlist [optional] * @return string diff --git a/Payment/W/Event.php b/Payment/W/Event.php index 87f45dcd1..4dbf1fde8 100644 --- a/Payment/W/Event.php +++ b/Payment/W/Event.php @@ -148,6 +148,9 @@ final function pid() {return $this->rr($this->k_pid());} * @used-by \Df\Payment\W\Handler::r() * @used-by \Df\PaypalClone\W\Event::validate() * @used-by \Dfe\IPay88\W\Event::option() + * @used-by \Dfe\PostFinance\W\Event::cardNumber() + * @used-by \Dfe\PostFinance\W\Event::option() + * @used-by \Dfe\PostFinance\W\Event::optionTitle() * @used-by \Dfe\Robokassa\W\Event::optionTitle() * @param string|string[]|null $k [optional] * @param string|null $d [optional] diff --git a/Payment/lib/card-formatter.php b/Payment/lib/card-formatter.php new file mode 100644 index 000000000..e1417db65 --- /dev/null +++ b/Payment/lib/card-formatter.php @@ -0,0 +1,10 @@ +_c->last4()} ({$this->_c->brand()})";} + function label() {return dfp_card_format_last4($this->_c->last4(), $this->_c->brand());} /** * 2017-02-11 diff --git a/composer.json b/composer.json index 65d10f2e9..a2d606d9a 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/core" - ,"version": "2.11.4" + ,"version": "2.11.5" ,"description": "Mage2.PRO core package." ,"type": "magento2-module" ,"homepage": "https://mage2.pro"