From d16c44fb5b86cfab8a36bca97cead2b51c7f00f8 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Tue, 5 Mar 2024 09:45:59 +0100 Subject: [PATCH] [ECP-8962] Implement Bizum payment method (#2525) --- etc/config.xml | 28 +++++++++++++-- etc/di.xml | 35 ++++++++++++++++--- etc/events.xml | 5 ++- etc/frontend/di.xml | 3 +- etc/graphql/di.xml | 1 + etc/payment.xml | 5 ++- view/base/web/images/logos/bizum.svg | 15 ++++++++ view/frontend/layout/checkout_index_index.xml | 5 ++- .../layout/multishipping_checkout_billing.xml | 1 + 9 files changed, 86 insertions(+), 12 deletions(-) create mode 100644 view/base/web/images/logos/bizum.svg diff --git a/etc/config.xml b/etc/config.xml index 24b0ddf34..feca7ce4d 100755 --- a/etc/config.xml +++ b/etc/config.xml @@ -2025,8 +2025,8 @@ 1 1 adyen-alternative-payment-method - - + + 0 AdyenPaymentVippsFacade Vipps @@ -2048,6 +2048,28 @@ 1 adyen-alternative-payment-method + + 0 + AdyenPaymentBizumFacade + Bizum + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + - + \ No newline at end of file diff --git a/etc/di.xml b/etc/di.xml index cd6a24ad2..1ca51fe7f 100755 --- a/etc/di.xml +++ b/etc/di.xml @@ -826,7 +826,6 @@ AdyenPaymentCommandManager AdyenPaymentCommandManager AdyenPaymentCommandManager - @@ -3931,8 +3930,8 @@ AdyenPaymentMobilepayValueHandlerPool AdyenPaymentValidatorPool AdyenPaymentCommandPool - - + + adyen_vipps @@ -3977,5 +3976,31 @@ adyen_vipps - - + + + adyen_bizum + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentBizumValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentBizumConfigValueHandler + + + + + + AdyenPaymentBizumConfig + + + + + adyen_bizum + + + \ No newline at end of file diff --git a/etc/events.xml b/etc/events.xml index 2580f623d..2c9334265 100644 --- a/etc/events.xml +++ b/etc/events.xml @@ -281,4 +281,7 @@ - + + + + \ No newline at end of file diff --git a/etc/frontend/di.xml b/etc/frontend/di.xml index e45441148..8fd1ab7cc 100755 --- a/etc/frontend/di.xml +++ b/etc/frontend/di.xml @@ -104,6 +104,7 @@ klarna_b2b mobilepay vipps + bizum Adyen_Payment/js/view/payment/method-renderer/adyen-cc-method @@ -150,4 +151,4 @@ - + \ No newline at end of file diff --git a/etc/graphql/di.xml b/etc/graphql/di.xml index 13bd54d79..72618ab23 100644 --- a/etc/graphql/di.xml +++ b/etc/graphql/di.xml @@ -84,6 +84,7 @@ Adyen\Payment\Model\Cart\Payment\AdditionalDataProvider\AdyenPm Adyen\Payment\Model\Cart\Payment\AdditionalDataProvider\AdyenPm Adyen\Payment\Model\Cart\Payment\AdditionalDataProvider\AdyenPm + Adyen\Payment\Model\Cart\Payment\AdditionalDataProvider\AdyenPm diff --git a/etc/payment.xml b/etc/payment.xml index 3dd06ebd5..b362a32a3 100755 --- a/etc/payment.xml +++ b/etc/payment.xml @@ -237,10 +237,13 @@ 1 - 1 + 1 1 + + 1 + \ No newline at end of file diff --git a/view/base/web/images/logos/bizum.svg b/view/base/web/images/logos/bizum.svg new file mode 100644 index 000000000..0b474c3da --- /dev/null +++ b/view/base/web/images/logos/bizum.svg @@ -0,0 +1,15 @@ + + + + Fill 7 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/view/frontend/layout/checkout_index_index.xml b/view/frontend/layout/checkout_index_index.xml index e634d30d2..5e7b6a06e 100755 --- a/view/frontend/layout/checkout_index_index.xml +++ b/view/frontend/layout/checkout_index_index.xml @@ -293,6 +293,9 @@ true + + true + @@ -310,4 +313,4 @@ - + \ No newline at end of file diff --git a/view/frontend/layout/multishipping_checkout_billing.xml b/view/frontend/layout/multishipping_checkout_billing.xml index 629e7db0e..0ae147f9f 100644 --- a/view/frontend/layout/multishipping_checkout_billing.xml +++ b/view/frontend/layout/multishipping_checkout_billing.xml @@ -94,6 +94,7 @@ Adyen_Payment::form/multishipping/abstract-form.phtml Adyen_Payment::form/multishipping/abstract-form.phtml Adyen_Payment::form/multishipping/abstract-form.phtml + Adyen_Payment::form/multishipping/abstract-form.phtml false