Skip to content

Commit

Permalink
Fix base grand total
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed May 9, 2024
1 parent 1b7c8ea commit 0936782
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Model/ApiFacade/CardTransaction/CardApiFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private function createCardOriginApiInstance(TpayInterface $tpay, TpayConfigInte

private function createOpenApiInstance(TpayInterface $tpay, TpayConfigInterface $tpayConfig, TpayTokensService $tokensService, TpayService $tpayService)
{
if ('PLN' !== $this->storeManager->getStore()->getCurrentCurrencyCode() || !$tpayConfig->isCardEnabled()) {
if ('PLN' !== $this->storeManager->getStore()->getBaseCurrencyCode() || !$tpayConfig->isCardEnabled()) {
$this->cardOpen = null;
$this->useOpenCard = false;

Expand Down
2 changes: 1 addition & 1 deletion Model/ApiFacade/TpayConfig/CardConfigFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function createOriginApiInstance(TpayInterface $tpay, TpayConfigInterfac

private function createOpenApiInstance(TpayInterface $tpay, TpayConfigInterface $tpayConfig, Repository $assetRepository, TpayTokensService $tokensService, StoreManagerInterface $storeManager)
{
if ('PLN' !== $storeManager->getStore()->getCurrentCurrencyCode()) {
if ('PLN' !== $storeManager->getStore()->getBaseCurrencyCode()) {
$this->openApi = null;
$this->useOpenApi = false;

Expand Down
2 changes: 1 addition & 1 deletion Model/ApiFacade/TpayConfig/ConfigFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function createOriginApiInstance(TpayInterface $tpay, TpayConfigInterfac

private function createOpenApiInstance(TpayInterface $tpay, TpayConfigInterface $tpayConfig, Repository $assetRepository, TpayTokensService $tokensService, StoreManagerInterface $storeManager)
{
if ('PLN' !== $storeManager->getStore()->getCurrentCurrencyCode() || !$tpayConfig->isOpenApiEnabled()) {
if ('PLN' !== $storeManager->getStore()->getBaseCurrencyCode() || !$tpayConfig->isOpenApiEnabled()) {
$this->openApi = null;
$this->useOpenApi = false;

Expand Down
2 changes: 1 addition & 1 deletion Model/MethodListPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private function filterResult(array $result): array

private function isPlnPayment(): bool
{
return 'PLN' === $this->storeManager->getStore()->getCurrentCurrencyCode();
return 'PLN' === $this->storeManager->getStore()->getBaseCurrencyCode();
}

private function filterTransaction(array $result): array
Expand Down

0 comments on commit 0936782

Please sign in to comment.