From ba23f2a7af44ebc2837730d880895250f4a475c4 Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Sun, 12 Nov 2017 18:02:53 +0300 Subject: [PATCH] 2.4.4: https://github.com/mage2pro/stripe/issues/15 --- Block/Info.php | 4 ++++ Facade/Charge.php | 2 +- composer.json | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Block/Info.php b/Block/Info.php index c18993a..a6db8bf 100644 --- a/Block/Info.php +++ b/Block/Info.php @@ -1,5 +1,6 @@ tm()->res0('three_d_secure/card'))) { $r = parent::cardData(); } + else if ($responseF = $this->tm()->responseF()) { + $r = $this->cardDataFromChargeResponse($responseF->r(M::IIA_TR_RESPONSE)); + } else { $this->s()->init(); // 2017-11-12 diff --git a/Facade/Charge.php b/Facade/Charge.php index 811398d..2504bf4 100644 --- a/Facade/Charge.php +++ b/Facade/Charge.php @@ -46,7 +46,7 @@ function id($c) {return $c->id;} * in a charge converted to an array by @see \Dfe\Stripe\Facade\O::toArray() * @override * @see \Df\StripeClone\Facade\Charge::pathToCard() - * @used-by \Df\StripeClone\Block\Info::cardData() + * @used-by \Df\StripeClone\Block\Info::cardDataFromChargeResponse() * @used-by \Df\StripeClone\Facade\Charge::cardData() * @return string */ diff --git a/composer.json b/composer.json index 4463d6c..f598ef8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/stripe" - ,"version": "2.4.3" + ,"version": "2.4.4" ,"description": "Stripe integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/stripe" @@ -11,7 +11,7 @@ "homepage": "https://mage2.pro/users/dmitry_fedyuk", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=3.3.6", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=5.3"} + ,"require": {"mage2pro/core": ">=3.3.7", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=5.3"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}} ,"keywords": [ "3D Secure"