Skip to content

Commit

Permalink
ShopperReference should be string to be aligned with checkout API (#2453
Browse files Browse the repository at this point in the history
)

* ShopperReference should be string to be aligned with checkout API
  • Loading branch information
hossam-adyen authored Jan 25, 2024
1 parent 2b35d60 commit e78b9ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Helper/PaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e78b9ec

Please sign in to comment.