Note: There is a new version of the Currencies API. If you're already using this module in your code, it will continue to work.
The Currency API is used to convert from one currency to another, get exchange rates, and manage the currencies you want to work with on your site. The API can be used with the currency conversion dropdown element on your Wix Stores page to display prices in a range of different currencies. Selecting a different currency from the dropdown on a Wix Stores page, automatically updates all of the prices displayed on your store's page to the selected currency. While the currency converter dropdown works with your Wix Stores pages, the Currencies API can be used on any page. Currency rates are provided by XE and are updated on a daily basis. Rates are provided together with the timestamp when they were set.
The currency API contains the following objects:
Currencies
getAllCurrencies()
to get a list of all the convertible currencies.CurrencyConverter
convertAmounts()
to convert amounts between two currencies.getConversionRate()
to get today’s conversion rate for a pair of currencies.SiteSettings
setCurrencies()
.getCurrencies()
to see the list of the currencies that you set.To use the Currencies API you must upgrade your site to a Premium Plan.
Note:
The currency converter changes the displayed prices in your store for different currencies but does not change the payment currency. The payment is always made in the currency set in your site's dashboard.
By using these objects you agree to XE's Terms of Use.