From b637b0a6781bff1415f2f8e39a959c1b195fbec3 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Mon, 6 May 2024 11:05:17 +0200 Subject: [PATCH] NTR: bancomat pay numer ist noch required --- src/Handler/Method/BancomatPayment.php | 1 - .../component/payment/component/bancomat-fields.html.twig | 4 ++-- src/Service/Payment/Remover/RegularPaymentRemover.php | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Handler/Method/BancomatPayment.php b/src/Handler/Method/BancomatPayment.php index 2514fa477..05f05ac12 100644 --- a/src/Handler/Method/BancomatPayment.php +++ b/src/Handler/Method/BancomatPayment.php @@ -7,7 +7,6 @@ use Mollie\Api\Types\PaymentMethod; use Shopware\Core\Checkout\Customer\CustomerEntity; use Shopware\Core\Checkout\Order\OrderEntity; -use Shopware\Core\System\Locale\LocaleEntity; use Shopware\Core\System\SalesChannel\SalesChannelContext; class BancomatPayment extends PaymentHandler diff --git a/src/Resources/views/storefront/component/payment/component/bancomat-fields.html.twig b/src/Resources/views/storefront/component/payment/component/bancomat-fields.html.twig index 634bdfcc6..070bfe636 100644 --- a/src/Resources/views/storefront/component/payment/component/bancomat-fields.html.twig +++ b/src/Resources/views/storefront/component/payment/component/bancomat-fields.html.twig @@ -1,13 +1,13 @@ {% if context.paymentMethod.translated.customFields.mollie_payment_method_name == 'bancomatpay' %}
- + + /> {{ "molliePayments.components.bancomatPay.phoneErrorMessage"|trans|striptags }} diff --git a/src/Service/Payment/Remover/RegularPaymentRemover.php b/src/Service/Payment/Remover/RegularPaymentRemover.php index f429e5359..40ca6088a 100644 --- a/src/Service/Payment/Remover/RegularPaymentRemover.php +++ b/src/Service/Payment/Remover/RegularPaymentRemover.php @@ -51,11 +51,6 @@ public function removePaymentMethods(PaymentMethodRouteResponse $originalData, S if ($attributes->getMollieIdentifier() === PaymentMethod::INGHOMEPAY) { $originalData->getPaymentMethods()->remove($key); } - - # currently for bancomat, you cannot update the phone number, so customer might stuck in order edit. we remove the payment method for now and will enable it when the mollie api allows to change that - if ($this->isOrderRoute() && $attributes->getMollieIdentifier() === PaymentMethod::BANCOMATPAY) { - $originalData->getPaymentMethods()->remove($key); - } } return $originalData;