From 2de03f14ae3a93752f211fdd6616c500cfe0beb1 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Tue, 19 Mar 2024 11:54:17 +0100 Subject: [PATCH] NTR: hide bancomat in order edit --- src/Service/Payment/Remover/RegularPaymentRemover.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Service/Payment/Remover/RegularPaymentRemover.php b/src/Service/Payment/Remover/RegularPaymentRemover.php index 40ca6088a..f429e5359 100644 --- a/src/Service/Payment/Remover/RegularPaymentRemover.php +++ b/src/Service/Payment/Remover/RegularPaymentRemover.php @@ -51,6 +51,11 @@ 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;