IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
The exchange rate provider class will contain the logic that queries the exchange rates for the specified currencies. The class must inherit the Telerik.Sitefinity.Modules.Ecommerce.ExchangeRates.Services.RateProviderBase class. Your class must expose the following method: ExchangeRateResponse GetExchangeRates(ExchangeRateRequest request);
This method has one parameter of type ExchanageRateRequest which contains the base currency of the store, a list of currencies to get exchange rates for (SupportedCurrencies), and the user defined settings for the provider which can be used to provide basic credentials (username, password, URL) for calling an external service. The method returns an ExchangeRateResponse class, which contains the list of rates for the requested currencies and a list of any error messages.
This method will be called when the rates are requested in the Sitefinity CMS backend. For more information about using the provider, see For developers: Use the exchange rate provider.
To create the exchange rate provider class, perform the following:
ExchangeRateResponse GetExchangeRates(ExchangeRateRequest request);
Use the following example of an exchange rate provider class:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important