From 7c787afcf95adcfbe8ffb29a89a48668044317fe Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Tue, 26 Nov 2024 12:55:42 +0100 Subject: [PATCH] [ECP-9475] Implement DOKU payment method variants (#2812) * [ECP-9475] Implement Alfamart via DOKU * [ECP-9475] Implement ATM Permata VA LITE via DOKU * [ECP-9475] Implement ATM BCA VA via DOKU * [ECP-9475] BNI VA via DOKU * [ECP-9475] BRI VA via DOKU * [ECP-9475] CIMB VA via DOKU * [ECP-9475] Danamon VA via DOKU * [ECP-9475] Danamon VA via DOKU * [ECP-9475] Indomaret via DOKU * [ECP-9475] Mandiri VA via DOKU --------- Co-authored-by: Can Demiralp --- etc/config.xml | 200 +++++++++++++- etc/di.xml | 243 ++++++++++++++++++ etc/events.xml | 27 ++ etc/frontend/di.xml | 9 + etc/graphql/di.xml | 9 + etc/payment.xml | 27 ++ view/base/web/images/logos/doku_alfamart.svg | 1 + view/base/web/images/logos/doku_bca_va.svg | 1 + view/base/web/images/logos/doku_bni_va.svg | 1 + view/base/web/images/logos/doku_bri_va.svg | 1 + view/base/web/images/logos/doku_cimb_va.svg | 1 + .../base/web/images/logos/doku_danamon_va.svg | 1 + view/base/web/images/logos/doku_indomaret.svg | 1 + .../base/web/images/logos/doku_mandiri_va.svg | 1 + .../images/logos/doku_permata_lite_atm.svg | 1 + view/frontend/layout/checkout_index_index.xml | 27 ++ .../layout/multishipping_checkout_billing.xml | 9 + 17 files changed, 559 insertions(+), 1 deletion(-) create mode 100644 view/base/web/images/logos/doku_alfamart.svg create mode 100644 view/base/web/images/logos/doku_bca_va.svg create mode 100644 view/base/web/images/logos/doku_bni_va.svg create mode 100644 view/base/web/images/logos/doku_bri_va.svg create mode 100644 view/base/web/images/logos/doku_cimb_va.svg create mode 100644 view/base/web/images/logos/doku_danamon_va.svg create mode 100644 view/base/web/images/logos/doku_indomaret.svg create mode 100644 view/base/web/images/logos/doku_mandiri_va.svg create mode 100644 view/base/web/images/logos/doku_permata_lite_atm.svg diff --git a/etc/config.xml b/etc/config.xml index d61cff0b2..b432bd83f 100755 --- a/etc/config.xml +++ b/etc/config.xml @@ -2274,6 +2274,204 @@ 0 adyen-alternative-payment-method + + 0 + AdyenPaymentDokuAlfamartFacade + Alfamart via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuPermataLiteAtmFacade + ATM Permata VA LITE via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuBcaVaFacade + ATM BCA VA via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuBniVaFacade + BNI VA via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuBriVaFacade + BRI VA via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuCimbVaFacade + CIMB VA via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuDanamonVaFacade + Danamon VA via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuIndomaretFacade + Indomaret via DOKU + 0 + 0 + authorize + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + adyen-alternative-payment-method + + + 0 + AdyenPaymentDokuMandiriVaFacade + Mandiri VA via DOKU + 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 32896b3ff..aefb9b552 100755 --- a/etc/di.xml +++ b/etc/di.xml @@ -4316,4 +4316,247 @@ adyen_kcp_creditcard + + + adyen_doku_alfamart + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuAlfamartValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuAlfamartConfigValueHandler + + + + + + AdyenPaymentDokuAlfamartConfig + + + + + adyen_doku_alfamart + + + + + adyen_doku_permata_lite_atm + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuPermataLiteAtmValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuPermataLiteAtmConfigValueHandler + + + + + + AdyenPaymentDokuPermataLiteAtmConfig + + + + + adyen_doku_permata_lite_atm + + + + + adyen_doku_bca_va + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuBcaVaValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuBcaVaConfigValueHandler + + + + + + AdyenPaymentDokuBcaVaConfig + + + + + adyen_doku_bca_va + + + + + adyen_doku_bni_va + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuBniVaValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuBniVaConfigValueHandler + + + + + + AdyenPaymentDokuBniVaConfig + + + + + adyen_doku_bni_va + + + + + adyen_doku_bri_va + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuBriVaValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuBriVaConfigValueHandler + + + + + + AdyenPaymentDokuBriVaConfig + + + + + adyen_doku_bri_va + + + + + adyen_doku_cimb_va + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuCimbVaValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuCimbVaConfigValueHandler + + + + + + AdyenPaymentDokuCimbVaConfig + + + + + adyen_doku_cimb_va + + + + + adyen_doku_danamon_va + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuDanamonVaValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuDanamonVaConfigValueHandler + + + + + + AdyenPaymentDokuDanamonVaConfig + + + + + adyen_doku_danamon_va + + + + + adyen_doku_indomaret + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuIndomaretValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuIndomaretConfigValueHandler + + + + + + AdyenPaymentDokuIndomaretConfig + + + + + adyen_doku_indomaret + + + + + adyen_doku_mandiri_va + Magento\Payment\Block\Form + Adyen\Payment\Block\Info\PaymentMethodInfo + AdyenPaymentDokuMandiriVaValueHandlerPool + AdyenPaymentValidatorPool + AdyenPaymentCommandPool + + + + + + AdyenPaymentDokuMandiriVaConfigValueHandler + + + + + + AdyenPaymentDokuMandiriVaConfig + + + + + adyen_doku_mandiri_va + + \ No newline at end of file diff --git a/etc/events.xml b/etc/events.xml index 152061321..8953d8297 100644 --- a/etc/events.xml +++ b/etc/events.xml @@ -311,4 +311,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/etc/frontend/di.xml b/etc/frontend/di.xml index a5e4a65ee..9553e01b2 100755 --- a/etc/frontend/di.xml +++ b/etc/frontend/di.xml @@ -114,6 +114,15 @@ kcp_naverpay kcp_payco kcp_creditcard + doku_alfamart + doku_permata_lite_atm + doku_bca_va + doku_bni_va + doku_bri_va + doku_cimb_va + doku_danamon_va + doku_indomaret + doku_mandiri_va Adyen_Payment/js/view/payment/method-renderer/adyen-cc-method diff --git a/etc/graphql/di.xml b/etc/graphql/di.xml index ca8deea49..ce48e3017 100644 --- a/etc/graphql/di.xml +++ b/etc/graphql/di.xml @@ -95,6 +95,15 @@ 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 + 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 + 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 5c9920a18..e8efc7767 100755 --- a/etc/payment.xml +++ b/etc/payment.xml @@ -272,5 +272,32 @@ 1 + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_alfamart.svg b/view/base/web/images/logos/doku_alfamart.svg new file mode 100644 index 000000000..76f4a967e --- /dev/null +++ b/view/base/web/images/logos/doku_alfamart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_bca_va.svg b/view/base/web/images/logos/doku_bca_va.svg new file mode 100644 index 000000000..45f42f70c --- /dev/null +++ b/view/base/web/images/logos/doku_bca_va.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_bni_va.svg b/view/base/web/images/logos/doku_bni_va.svg new file mode 100644 index 000000000..e0bb021e6 --- /dev/null +++ b/view/base/web/images/logos/doku_bni_va.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_bri_va.svg b/view/base/web/images/logos/doku_bri_va.svg new file mode 100644 index 000000000..30951b99a --- /dev/null +++ b/view/base/web/images/logos/doku_bri_va.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_cimb_va.svg b/view/base/web/images/logos/doku_cimb_va.svg new file mode 100644 index 000000000..46e66acab --- /dev/null +++ b/view/base/web/images/logos/doku_cimb_va.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_danamon_va.svg b/view/base/web/images/logos/doku_danamon_va.svg new file mode 100644 index 000000000..b5ee7fdfe --- /dev/null +++ b/view/base/web/images/logos/doku_danamon_va.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_indomaret.svg b/view/base/web/images/logos/doku_indomaret.svg new file mode 100644 index 000000000..8d792a956 --- /dev/null +++ b/view/base/web/images/logos/doku_indomaret.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_mandiri_va.svg b/view/base/web/images/logos/doku_mandiri_va.svg new file mode 100644 index 000000000..c223e7926 --- /dev/null +++ b/view/base/web/images/logos/doku_mandiri_va.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/base/web/images/logos/doku_permata_lite_atm.svg b/view/base/web/images/logos/doku_permata_lite_atm.svg new file mode 100644 index 000000000..d9747002d --- /dev/null +++ b/view/base/web/images/logos/doku_permata_lite_atm.svg @@ -0,0 +1 @@ + \ 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 076a3d1ca..d592dcf8f 100755 --- a/view/frontend/layout/checkout_index_index.xml +++ b/view/frontend/layout/checkout_index_index.xml @@ -326,6 +326,33 @@ true + + true + + + true + + + true + + + true + + + true + + + true + + + true + + + true + + + true + diff --git a/view/frontend/layout/multishipping_checkout_billing.xml b/view/frontend/layout/multishipping_checkout_billing.xml index 64d663f2b..5841e5239 100644 --- a/view/frontend/layout/multishipping_checkout_billing.xml +++ b/view/frontend/layout/multishipping_checkout_billing.xml @@ -104,6 +104,15 @@ 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 + 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 + 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