From b7b18b1fc5adec6d0ebc70aa97677ceaa7b4430c Mon Sep 17 00:00:00 2001 From: Mikel Martin Date: Wed, 25 Sep 2024 13:04:35 +0200 Subject: [PATCH 1/2] Use different base url depending on the test/live mode --- .../Listing/Column/SequraOrderLink.php | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/Ui/Component/Listing/Column/SequraOrderLink.php b/Ui/Component/Listing/Column/SequraOrderLink.php index 9e321c0..a7db5e3 100644 --- a/Ui/Component/Listing/Column/SequraOrderLink.php +++ b/Ui/Component/Listing/Column/SequraOrderLink.php @@ -7,9 +7,12 @@ use Magento\Framework\View\Element\UiComponent\ContextInterface; use Magento\Framework\View\Element\UiComponentFactory; use Magento\Framework\UrlInterface; +use SeQura\Core\BusinessLogic\Domain\Connection\Models\ConnectionData; +use SeQura\Core\BusinessLogic\Domain\Connection\Services\ConnectionService; use SeQura\Core\BusinessLogic\Domain\Order\Models\OrderRequest\OrderRequestStates; use SeQura\Core\BusinessLogic\Domain\Order\Models\SeQuraOrder; use SeQura\Core\BusinessLogic\Domain\Order\Service\OrderService; +use SeQura\Core\BusinessLogic\SeQuraAPI\BaseProxy; use SeQura\Core\Infrastructure\ServiceRegister; use Sequra\Core\Services\BusinessLogic\Utility\SeQuraTranslationProvider; @@ -23,7 +26,8 @@ class SequraOrderLink extends Column protected $assetRepository; protected $urlBuilder; protected $translationProvider; - public const SEQURA_PORTAL_URL = 'https://simbox.sequrapi.com/orders/'; + public const SEQURA_PORTAL_SANDBOX_URL = 'https://simbox.sequrapi.com/orders/'; + public const SEQURA_PORTAL_URL = 'https://simba.sequra.com/orders/'; /** * @param ContextInterface $context @@ -117,7 +121,7 @@ private function getButtonLink(string $orderReference): string $imagePath = $this->assetRepository->getUrl('Sequra_Core::images/sequra-logo.png'); return html_entity_decode( - ' + '