You are here

public function ExchangerProviderRemoteBase::getBaseCurrency in Commerce Exchanger 8

Either remote provider defined base currency, or use entered.

Return value

string Return currency three letter code - ISO 4217.

Overrides ExchangerProviderRemoteInterface::getBaseCurrency

2 calls to ExchangerProviderRemoteBase::getBaseCurrency()
ExchangerProviderRemoteBase::processRemoteData in src/Plugin/Commerce/ExchangerProvider/ExchangerProviderRemoteBase.php
Process data with checking structure and preparing data for importing.
TransferWiseExchanger::getRemoteData in src/Plugin/Commerce/ExchangerProvider/TransferWiseExchanger.php
Fetch external data.

File

src/Plugin/Commerce/ExchangerProvider/ExchangerProviderRemoteBase.php, line 44

Class

ExchangerProviderRemoteBase
Base class for Commerce exchanger provider plugins.

Namespace

Drupal\commerce_exchanger\Plugin\Commerce\ExchangerProvider

Code

public function getBaseCurrency() {
  return $this->configuration['base_currency'];
}