Log in
Model

FixerIoApiLayer

Magento\Directory\Model\Currency\Import\FixerIoApiLayer

What it does

This class imports currency exchange rates from the Fixer API (via APILayer.com) into Magento 2.

Developers would use or extend this class when implementing automated currency rate updates from the Fixer API service, which requires an API key configured in the store settings.

It fetches rates in batch mode for all allowed currencies and saves them to the database.

Public Methods

  • importRates()
  • fetchRates()
  • getMessages()