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;