BILLmanager Knowledge Base
en En
es Es

Currency exchange rates not updating

Problem

Automatic currency exchange rate updates in DirectoriesCurrencies are not working as expected. When you click Update:

  • in the Currencies section, the Last update column is either empty or shows an outdated date;
  • current exchange rates fail to load.

This issue typically occurs when the external service that the platform uses to fetch exchange rates is:

  • unavailable;
  • changed;
  • malfunctioning.

As a result, some payment methods may become unavailable to clients. The following error appears in the billmgr.log when a client attempts to make a payment:

Mar 22 09:15:35 [2279:10338] libmgr ERROR Error: Type: 'no_currency_rate'

Diagnosis

To confirm the issue:

  1. Go to DirectoriesCurrencies.
  2. Select a currency. 
  3. Make sure Upload currencies automatically option is enabled for this currency. For more detail, see Localization and Currencies
  4. Click Currencies.
  5. Check the Last update column. Expected result (issue confirmed): the column is either empty or shows an old date.
  6. Click UpdateОk.
  7. Check Last update column. Expected result (issue confirmed): the date has not changed to the current one.

Solution

Чтобы решить проблему, загрузите курс валют с альтернативного источника:

  1. Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Open the configuration file /usr/local/mgr5/etc/billmgr.conf in a text editor.
  3. Add a line to the file:

    ExchangeRateCollectorURL https://exchange-rate.ispsystem.com
  4. Save the changes and exit the editor.
  5. Go to DirectoriesCurrencies and update the exchange rate again.