Could I user IExchangeRateProvider from payment plugin?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I implemented a payment plugin and need to get currency rates.
Could I user IExchangeRateProvider from payment plugin?

When I using it like this:


private readonly IExchangeRateProvider _exchangeRateProvider;
public SomePaymentProcessor(IExchangeRateProvider exchangeRateProvider)
        {
            _exchangeRateProvider = exchangeRateProvider;
        }


I receiving an error:
Nop.Core.NopException: 'No constructor was found that had all the dependencies satisfied.'

What I need to add to work?
3 years ago
What class does your plugin inherit from?
Did you register your class with dependency registrar?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.