diff --git a/Model/ApiFacade/TpayConfig/ConfigOpen.php b/Model/ApiFacade/TpayConfig/ConfigOpen.php index bf5bdeb..fce7a75 100755 --- a/Model/ApiFacade/TpayConfig/ConfigOpen.php +++ b/Model/ApiFacade/TpayConfig/ConfigOpen.php @@ -85,7 +85,8 @@ public function createCSS(string $css): string public function getCardConfig() { $customerTokensData = []; - if ($this->tpay->getCardSaveEnabled()) { + + if ($this->tpay->getCardSaveEnabled() && $this->tpay->isCustomerLoggedIn()) { $customerTokens = $this->tokensService->getCustomerTokens($this->tpay->getCheckoutCustomerId(), true); foreach ($customerTokens as $value) { $customerTokensData[] = [