The Xe Currency Converter Data Connector uses the Xe.com API to return the current exchange rates between two or more currencies.
Once this has been installed and added to a Form, you can access this Data Connector in the Form's server event scripts using: connectors.verjio.xecurrencyconverter
.
xecurrencyconverter.convertFrom
converts a value in one currency to one or more destination currencies. For example, you may want to convert a price in GBP into EUR, USD and JPY.
xecurrencyconverter.convertTo
converts a value from one or more currencies to a single destination currency.
Code example:
// Convert 1400 CNY, HKD and JPY to GBP
var result = connectors.verjio.xecurrencyconverter.convertTo(
['CNY', 'HKD', 'JPY'], 'GBP',
1400
);
For comprehensive information on how to use and develop applications with this Data Connector please refer to the Support section.
The Installation section has instructions on installing it into your Workspace.
Complete JavaScript API documentation for this Data Connector can be found in the Documentation section.