diff --git a/Block/Info.php b/Block/Info.php index 924c8f5..c18993a 100644 --- a/Block/Info.php +++ b/Block/Info.php @@ -18,11 +18,9 @@ protected function 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 - */ + // 2017-11-12 + // "An initial reusable source for a card which requires a 3D Secure verification": + // https://mage2.pro/t/4893 $r = lSource::retrieve($initialSourceId); } return $r; diff --git a/Facade/Token.php b/Facade/Token.php index 0a8a7cd..1f73cdf 100644 --- a/Facade/Token.php +++ b/Facade/Token.php @@ -16,6 +16,7 @@ static function isCard($id) {return df_starts_with($id, 'card_');} * 2017-11-12 * @used-by \Dfe\Stripe\Facade\Charge::tokenIsNew() * @used-by \Dfe\Stripe\Init\Action::sourceInitial() + * @used-by \Dfe\Stripe\Method::transUrlBase() * @param string $id * @return bool */ diff --git a/Method.php b/Method.php index 8cd483f..1df0522 100644 --- a/Method.php +++ b/Method.php @@ -129,7 +129,9 @@ protected function iiaKeys() {return array_merge(parent::iiaKeys(), [self::$II_C * @param T $t * @return string */ - protected function transUrlBase(T $t) {return 'https://dashboard.stripe.com/payments';} + protected function transUrlBase(T $t) {return 'https://dashboard.stripe.com/' . ( + fToken::isPreviouslyUsedOrTrimmedSource($t->getTxnId()) ? 'sources' : 'payments' + );} /** * 2017-02-08 diff --git a/composer.json b/composer.json index 60e613e..4463d6c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/stripe" - ,"version": "2.4.2" + ,"version": "2.4.3" ,"description": "Stripe integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/stripe"