Skip to content

Commit

Permalink
Multistore notification fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jan 19, 2024
1 parent f5d6a40 commit 00a607b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Api/TpayInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getOpenApiPassword(): ?string;

public function getApiKey(): ?string;

public function getSecurityCode(): ?string;
public function getSecurityCode(?int $storeId = null): ?string;

public function getOpenApiClientId(): ?string;

Expand All @@ -66,7 +66,7 @@ public function getTermsURL(): string;
/** Check if send an email about the new invoice to customer */
public function getInvoiceSendMail(): string;

public function useSandboxMode(): bool;
public function useSandboxMode(?int $storeId = null): bool;

/** Check if checkout amount is in range of installments payment channel */
public function getInstallmentsAmountValid(): bool;
Expand Down
8 changes: 4 additions & 4 deletions Model/Tpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ public function getOpenApiClientId(): ?string
return $this->getConfigData('openapi_settings/open_api_client_id');
}

public function getSecurityCode(): ?string
public function getSecurityCode(?int $storeId = null): ?string
{
return $this->getConfigData('general_settings/security_code');
return $this->getConfigData('general_settings/security_code', $storeId);
}

public function onlyOnlineChannels(): bool
Expand Down Expand Up @@ -274,9 +274,9 @@ public function isOriginApiCardUse(): bool
return (bool) $this->getConfigData('cardpayment_settings/cardpayment_origin_api_use');
}

public function useSandboxMode(): bool
public function useSandboxMode(?int $storeId = null): bool
{
return (bool) $this->getConfigData('general_settings/use_sandbox');
return (bool) $this->getConfigData('general_settings/use_sandbox', $storeId);
}

public function getPaymentRedirectUrl(): string
Expand Down

0 comments on commit 00a607b

Please sign in to comment.