Skip to content

Commit

Permalink
2.4.2: #15
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 12, 2017
1 parent 0acb74e commit 7eed5d4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
30 changes: 30 additions & 0 deletions Block/Info.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
namespace Dfe\Stripe\Block;
use Stripe\Source as lSource;
// 2017-11-12
/** @final Unable to use the PHP «final» keyword here because of the M2 code generation. */
class Info extends \Df\StripeClone\Block\Info {
/**
* 2017-11-12
* @override
* @see \Df\StripeClone\Block\Info::cardData()
* @used-by \Df\StripeClone\Block\Info::prepare()
* @return lSource|array(string => mixed)
*/
protected function cardData() {
/** @var array(string => mixed) $r */
if (!($initialSourceId = $this->tm()->res0('three_d_secure/card'))) {
$r = parent::cardData();
}
else {
$this->s()->init();
/**
* 2017-11-12
* "An initial reusable source for a card which requires a 3D Secure verification":
* https://mage2.pro/t/topic/4893
*/
$r = lSource::retrieve($initialSourceId);
}
return $r;
}
}
1 change: 0 additions & 1 deletion Init/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace Dfe\Stripe\Init;
use Df\Core\Exception as DFE;
use Df\Payment\W\Event as Ev;
use Dfe\Stripe\Facade\Charge as fCharge;
use Dfe\Stripe\Facade\Token as fToken;
use Dfe\Stripe\Method as M;
use Dfe\Stripe\P\_3DS as p3DS;
Expand Down
1 change: 1 addition & 0 deletions Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function _3ds() {return dfc($this, function() {return new _3DS($this);});}
* @see \Df\Payment\Settings::init()
* @used-by account()
* @used-by \Df\Payment\Method::action()
* @used-by \Dfe\Stripe\Block\Info::cardData()
* @used-by \Dfe\Stripe\Controller\CustomerReturn\Index::isSuccess()
* @used-by \Dfe\Stripe\Init\Action::preorder()
*/
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/stripe"
,"version": "2.4.1"
,"version": "2.4.2"
,"description": "Stripe integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/stripe"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.3.5", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=5.3"}
,"require": {"mage2pro/core": ">=3.3.6", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=5.3"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}}
,"keywords": [
"3D Secure"
Expand Down

0 comments on commit 7eed5d4

Please sign in to comment.