From 4ff36f3cc0688ead4c79366c50cd3f9c3268d804 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Tue, 26 Nov 2024 11:04:05 +0100 Subject: [PATCH 1/2] [ECP-9544] Create an abstract method renderer for Oney/Facilypay variants --- etc/di.xml | 4 + .../adyen-facilypay-3x-method.phtml | 5 + .../adyen-facilypay-method.phtml | 148 ++++++++++++++++++ 3 files changed, 157 insertions(+) create mode 100644 view/frontend/templates/payment/method-renderer/adyen-facilypay-method.phtml diff --git a/etc/di.xml b/etc/di.xml index 54bbc24b..f9c8c002 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -25,6 +25,10 @@ adyen-affirm-method.phtml adyen-amazonpay-method.phtml adyen-facilypay-3x-method.phtml + adyen-facilypay-method.phtml + adyen-facilypay-method.phtml + adyen-facilypay-method.phtml + adyen-facilypay-method.phtml Adyen\Hyva\Magewire\Payment\Method\CreditCard diff --git a/view/frontend/templates/payment/method-renderer/adyen-facilypay-3x-method.phtml b/view/frontend/templates/payment/method-renderer/adyen-facilypay-3x-method.phtml index 5dd19776..3228de5d 100644 --- a/view/frontend/templates/payment/method-renderer/adyen-facilypay-3x-method.phtml +++ b/view/frontend/templates/payment/method-renderer/adyen-facilypay-3x-method.phtml @@ -7,6 +7,9 @@ use Magento\Framework\View\Element\Template; /** @var Template $block */ /** @var Escaper $escaper */ +/** + * @deprecated This file will be removed on V2. Use `adyen-facilypay-method.phtml` instead. + */ ?>
@@ -81,6 +84,8 @@ use Magento\Framework\View\Element\Template; }; } + debugger; + return baseComponentConfiguration; } } diff --git a/view/frontend/templates/payment/method-renderer/adyen-facilypay-method.phtml b/view/frontend/templates/payment/method-renderer/adyen-facilypay-method.phtml new file mode 100644 index 00000000..1900118a --- /dev/null +++ b/view/frontend/templates/payment/method-renderer/adyen-facilypay-method.phtml @@ -0,0 +1,148 @@ + + +
+ +
+ + +
From 636903057ea0619210aa459be6de99afb263956e Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Tue, 26 Nov 2024 16:16:50 +0100 Subject: [PATCH 2/2] [ECP-9544] Bump the dependency version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9abd6c0c..30f5f0fa 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.12.0", "hyva-themes/magento2-default-theme": "^1.3", "hyva-themes/magento2-hyva-checkout": "^1.1" },