diff --git a/Helper/PaymentMethods.php b/Helper/PaymentMethods.php index 362004a18..5a9d2c8da 100644 --- a/Helper/PaymentMethods.php +++ b/Helper/PaymentMethods.php @@ -1092,8 +1092,8 @@ public function isOpenInvoice(MethodInterface $paymentMethodInstance): bool public function getRequiresLineItems(MethodInterface $paymentMethodInstance): bool { $isOpenInvoice = $this->isOpenInvoice($paymentMethodInstance); - $requiresLineItems = boolval($paymentMethodInstance->getConfigData(self::CONFIG_FIELD_REQUIRES_LINE_ITEMS)); + $requiresLineItemsConfig = boolval($paymentMethodInstance->getConfigData(self::CONFIG_FIELD_REQUIRES_LINE_ITEMS)); - return ($isOpenInvoice === true || $requiresLineItems === true); + return ($isOpenInvoice || $requiresLineItemsConfig); } }