From 1e9c1df6dc0098ed9141393a6672bad6c9cb72f4 Mon Sep 17 00:00:00 2001 From: Justin van Elst Date: Tue, 14 Jan 2025 13:28:24 +0100 Subject: [PATCH 1/2] Make compatible with adyen/module-payment 9.13.0 --- Magewire/Payment/Method/AdyenPaymentComponent.php | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Magewire/Payment/Method/AdyenPaymentComponent.php b/Magewire/Payment/Method/AdyenPaymentComponent.php index 6a81e1e3..5f92fddd 100644 --- a/Magewire/Payment/Method/AdyenPaymentComponent.php +++ b/Magewire/Payment/Method/AdyenPaymentComponent.php @@ -11,7 +11,7 @@ use Adyen\Hyva\Model\PaymentMethod\PaymentMethods; use Adyen\Payment\Api\AdyenOrderPaymentStatusInterface; use Adyen\Payment\Api\AdyenPaymentsDetailsInterface; -use Adyen\Payment\Gateway\Request\HeaderDataBuilder; +use Adyen\Payment\Gateway\Request\Header\HeaderDataBuilderInterface; use Adyen\Payment\Helper\StateData; use Adyen\Payment\Helper\Util\CheckoutStateDataValidator; use Hyva\Checkout\Model\Magewire\Component\Evaluation\EvaluationResult; @@ -102,7 +102,7 @@ public function placeOrder(array $data): void $this->handleSessionVariables($data); $quoteId = $this->session->getQuoteId(); $payment = $this->session->getQuote()->getPayment(); - $payment->setAdditionalInformation(HeaderDataBuilder::FRONTENDTYPE, self::FRONTENDTYPE_HYVA); + $payment->setAdditionalInformation(HeaderDataBuilderInterface::ADDITIONAL_DATA_FRONTEND_TYPE_KEY, self::FRONTENDTYPE_HYVA); $stateDataReceived = $this->collectValidatedStateData($data); //Temporary (per request) storage of state data $this->stateData->setStateData($stateDataReceived, (int) $quoteId); diff --git a/README.md b/README.md index fcc45783..05f66107 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This module depends on: The dependencies may be obtained like for example ``` - "adyen/module-payment": "^9.6.1", + "adyen/module-payment": "^9.13.0", "hyva-themes/magento2-default-theme": "^1.3", "hyva-themes/magento2-hyva-checkout": "^1.1", ``` From 9c64a2a999b31e55ad426a3f08462c1949d2da92 Mon Sep 17 00:00:00 2001 From: Justin van Elst Date: Tue, 14 Jan 2025 13:30:30 +0100 Subject: [PATCH 2/2] Make compatible with adyen/module-payment 9.13.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9abd6c0c..11c4ba9e 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "version": "1.2.2", "license": "MIT", "require": { - "adyen/module-payment": "^9.6.1", + "adyen/module-payment": "^9.13.0", "hyva-themes/magento2-default-theme": "^1.3", "hyva-themes/magento2-hyva-checkout": "^1.1" },