multi payment configuration

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I have multi store
"www.store1.com"
"www.store2.com"
"www.store3.com"

Can I configure different configuration for each store.
And How can I get plugin configuration and settings in checkout controller user interface  ?

Thank you
3 years ago
Yes you can have different Configurations for each store
When configuring you need to use the Store Scope
Have a look at how is is done in Nop.Plugin.Payments.PayPalStandard
From the Configure method...
//load settings for a chosen store scope
var storeScope = _storeContext.ActiveStoreScopeConfiguration;
var payPalStandardPaymentSettings = _settingService.LoadSetting<PayPalStandardPaymentSettings>(storeScope);

In the payment processor the settings related to the current store should be loaded in
        private readonly PayPalStandardPaymentSettings _payPalStandardPaymentSettings;
3 years ago
Yidna wrote:
...Have a look at how is is done in Nop.Plugin.Payments.PayPalStandard...

Also notice tag <nop-override-store-checkbox> in \Views\Configure.cshtml
3 years ago
Thank you all.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.