Skip to content

Commit

Permalink
Fix card saving
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ddly committed Jan 11, 2024
1 parent 8c2af33 commit d7250a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/ApiFacade/TpayConfig/ConfigOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down

0 comments on commit d7250a8

Please sign in to comment.