Back to Plugins

PriceFX Currency Converter

Currency exchange rate conversion plugin for Medusa with support for multiple rate providers including Frankfurter, Exchangerate API, and CurrencyLayer


Overview

The medusa-plugin-pricefx is a currency exchange rate conversion plugin for Medusa commerce platforms. This plugin integrates with multiple exchange rate providers to provide accurate, up-to-date currency conversion for multi-currency stores.

Supported Platforms

The plugin supports three different exchange rate providers with varying features:

ServiceFree TierUpdate FrequencyBest For
FrankfurterUnlimited requestsDailyHigh-volume stores
Exchangerate API1,500 requests/monthDailyMedium-traffic stores
CurrencyLayer100 requests/monthReal-timeReal-time rate needs

System Requirements

Before installing the plugin, ensure your system meets the following requirements:

Installation

Install the plugin using npm:

npm i medusa-plugin-pricefx

Configuration

Configure the plugin in your medusa-config.js file:

module.exports = {
  plugins: [
    {
      resolve: "medusa-plugin-pricefx",
      options: {
        platform: 'frankfurter', // or 'exchange-rate' or 'currency-layer'
        access_token: '', // Required for some platforms
        ttl: 3600, // Cache TTL in seconds, set to 0 to disable caching
      },
    }
  ]
}

Configuration Options

platform

Choose your preferred exchange rate provider:

access_token

API token for the selected platform (required for some providers):

ttl

Cache time-to-live in seconds:

Environment Variables

Alternatively, configure using environment variables:

PRICEFX_PLATFORM=frankfurter
PRICEFX_ACCESS_TOKEN=your_api_token_here
PRICEFX_TTL=3600

Then reference in your config:

{
  resolve: "medusa-plugin-pricefx",
  options: {
    platform: process.env.PRICEFX_PLATFORM,
    access_token: process.env.PRICEFX_ACCESS_TOKEN,
    ttl: parseInt(process.env.PRICEFX_TTL || '3600'),
  },
}

Features

Use Cases

This plugin is ideal for:

Choosing a Provider

Use Frankfurter if:

Use Exchangerate API if:

Use CurrencyLayer if:

Performance Tips

  1. Enable Caching - Use a TTL of 3600+ seconds to reduce API calls
  2. Choose Appropriate Provider - Match provider to your traffic volume
  3. Monitor Usage - Track API request usage to avoid limits

Explore More Medusa Plugins

Find more powerful plugins and integrations to enhance your Medusa store. Browse our collection of community-driven solutions.

Free & Open Source
Community Driven
Easy Integration