From 3b470728f33a25549138a662b402693c78872e69 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Tue, 17 Dec 2024 11:00:04 +0100 Subject: [PATCH] NTR: set banktrasnfer due dates to max for cancellation --- src/Service/Order/OrderExpireService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/Order/OrderExpireService.php b/src/Service/Order/OrderExpireService.php index 317843191..3055e288d 100644 --- a/src/Service/Order/OrderExpireService.php +++ b/src/Service/Order/OrderExpireService.php @@ -116,7 +116,7 @@ public function cancelExpiredOrders(OrderCollection $orders, Context $context): if ($this->orderUsesSepaPayment($lastTransaction)) { $bankTransferDueDays = $settings->getPaymentMethodBankTransferDueDateDays(); if ($bankTransferDueDays === null) { - $bankTransferDueDays = BankTransferPayment::DUE_DATE_MIN_DAYS; + $bankTransferDueDays = BankTransferPayment::DUE_DATE_MAX_DAYS; } $finalizeTransactionTimeInMinutes = 60 * 60 * 24 * $bankTransferDueDays; }