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:
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important