getConfigData('takePaymentInStoreBaseCurrency'); $quote = $this->getQuote(); if ($quote->getPayment()->getMethod() == 'cardsaveonlinepayments') { if ($takePaymentInStoreBaseCurrency) { if ($quote->getBaseCurrencyCode() != $quote->getQuoteCurrencyCode()) { return true; } else { return false; } } else { return false; } } if ($quote->getBaseCurrencyCode() != $quote->getQuoteCurrencyCode()) { return true; } return false; } }