Skip to content

Commit

Permalink
NTR: set banktrasnfer due dates to max for cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Dec 17, 2024
1 parent e15eb8f commit 3b47072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Order/OrderExpireService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3b47072

Please sign in to comment.