diff --git a/Helper/PaymentMethods.php b/Helper/PaymentMethods.php index 4f4213602..a55fa2a6c 100644 --- a/Helper/PaymentMethods.php +++ b/Helper/PaymentMethods.php @@ -266,9 +266,10 @@ protected function setQuote(\Magento\Quote\Model\Quote $quote): void $this->quote = $quote; } - protected function getCurrentShopperReference(): ?int + protected function getCurrentShopperReference(): ?string { - return $this->getQuote()->getCustomerId(); + $customerId = $this->getQuote()->getCustomerId(); + return $customerId ? (string)$customerId : null; } protected function getPaymentMethodsRequest(