avenyra / module-currency-api
A Magento 2 module that integrates with currencyapi.com to fetch and import real-time currency exchange rates into your Magento store.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
Type:magento2-module
pkg:composer/avenyra/module-currency-api
This package is auto-updated.
Last update: 2026-02-11 10:56:07 UTC
README
Avenyra Currency Converter Module
A Magento 2 module that integrates with currencyapi.com to fetch and import real-time currency exchange rates into your Magento store.
Features
- Real-time Currency Rates: Fetch live exchange rates from currencyapi.com API
- Batch Processing: Efficiently processes multiple currency conversions in a single API call
- Magento Integration: Seamlessly integrates with Magento's native currency import system
System Requirements
- PHP: 8.1+
- Magento: 2.4.5+
Installation
Via Composer (Recommended)
composer require avenyra/module-currency-api php bin/magento module:enable Avenyra_CurrencyApi php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:flush
Configuration
Step 1: Obtain API Key
- Visit currencyapi.com
- Sign up for a free account or choose a paid plan
- Generate your API key from the dashboard
Step 2: Configure in Magento Admin
- Navigate to Stores > Configuration > General > Currency Setup
- Locate the CurrencyApi section
- Enter your API key in the API Key field (encrypted automatically)
- Set the Connection Timeout in Seconds (recommended: 30 seconds)
- Click Save Config
Step 3: Import Currency Rates
- Go to Stores > Currency > Currency Rates
- Select Currency API (currencyapi.com) from the Import Service dropdown
- Click Import to fetch the latest rates
API Pricing & Disclaimer
⚠️ Important: While this module is free to use, the currencyapi.com API service has its own pricing structure:
- Free Plan: Limited API calls per month (suitable for small stores)
- Paid Plans: Higher call limits and additional features available
Please review the currencyapi.com pricing page to choose the plan that best fits your store's needs.
Troubleshooting
"No API Key was specified or an invalid API Key was specified"
- Verify your API key is correctly entered in the admin configuration
- Ensure the API key is valid and active on currencyapi.com
"We can't retrieve a rate from currencyapi.com for [CURRENCY]"
- Check if the currency code is supported by currencyapi.com
- Verify your API plan supports the requested currency pair
Connection Timeout Issues
- Increase the Connection Timeout in Seconds value in configuration
- Check your server's internet connectivity
- Verify currencyapi.com service status
Support
For issues or questions:
- Check the Magento logs:
var/log/system.log - Visit currencyapi.com documentation
- Found a bug or issue? Please open an issue on GitHub.
Author
Avenyra Solutions