diff --git a/src/Components/OrderExpiration/ExpireAction.php b/src/Components/OrderExpiration/ExpireAction.php index edd47656d..654f444db 100644 --- a/src/Components/OrderExpiration/ExpireAction.php +++ b/src/Components/OrderExpiration/ExpireAction.php @@ -78,6 +78,7 @@ private function expireOrdersInSalesChannel(SalesChannelEntity $salesChannelEnti $criteria = new Criteria(); $criteria->addAssociation('transactions.stateMachineState'); + $criteria->addAssociation('transactions.paymentMethod'); $criteria->addFilter(new EqualsFilter('transactions.stateMachineState.technicalName', OrderTransactionStates::STATE_IN_PROGRESS)); $criteria->addFilter(new EqualsFilter('salesChannelId', $salesChannelEntity->getId())); $criteria->addFilter(new RangeFilter('orderDateTime', [RangeFilter::GTE => $date->format(Defaults::STORAGE_DATE_TIME_FORMAT)]));