We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 7351be27 authored by Alexandros Moraitis's avatar Alexandros Moraitis Committed by GitHub

[PW-3006] 3DS redirect to wrong storefront (#821)

* Fix redirect url with the correct store

* redirect shopper after 3ds to current store
Co-authored-by: default avatarAttila Kiss <42297201+cyattilakiss@users.noreply.github.com>
parent c7369b24
...@@ -35,27 +35,35 @@ use Magento\Quote\Api\Data\PaymentInterface; ...@@ -35,27 +35,35 @@ use Magento\Quote\Api\Data\PaymentInterface;
class Requests extends AbstractHelper class Requests extends AbstractHelper
{ {
/** /**
* @var \Adyen\Payment\Helper\Data * @var Data
*/ */
private $adyenHelper; private $adyenHelper;
/** /**
* @var \Adyen\Payment\Helper\Config * @var \Adyen\Payment\Helper\Config
*/ */
private $adyenConfig; private $adyenConfig;
/**
* @var \Magento\Framework\UrlInterface
*/
private $urlBuilder;
/** /**
* Requests constructor. * Requests constructor.
* *
* @param Data $adyenHelper * @param Data $adyenHelper
* @param Config $adyenConfig ; * @param Config $adyenConfig
* @param \Magento\Framework\UrlInterface $urlBuilder
*/ */
public function __construct( public function __construct(
\Adyen\Payment\Helper\Data $adyenHelper, \Adyen\Payment\Helper\Data $adyenHelper,
\Adyen\Payment\Helper\Config $adyenConfig \Adyen\Payment\Helper\Config $adyenConfig,
\Magento\Framework\UrlInterface $urlBuilder
) { ) {
$this->adyenHelper = $adyenHelper; $this->adyenHelper = $adyenHelper;
$this->adyenConfig = $adyenConfig; $this->adyenConfig = $adyenConfig;
$this->urlBuilder = $urlBuilder;
} }
/** /**
...@@ -357,8 +365,7 @@ class Requests extends AbstractHelper ...@@ -357,8 +365,7 @@ class Requests extends AbstractHelper
{ {
$request['redirectFromIssuerMethod'] = 'GET'; $request['redirectFromIssuerMethod'] = 'GET';
$request['redirectToIssuerMethod'] = 'POST'; $request['redirectToIssuerMethod'] = 'POST';
$request['returnUrl'] = $this->adyenHelper->getOrigin($storeId) . '/adyen/process/redirect'; $request['returnUrl'] = $this->urlBuilder->getUrl('adyen/process/redirect');
return $request; return $request;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment