You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have issue with multistore Magento 2.4.2-p1 setup. I need Payment Method to be available only for one website (now we have 3 websites in one M2 setup). But even so in admin configuration PayU and PayU Card set to "Enable - No" it still displayed on checkout page.
Steps to reproduce:
Configure 2 Websites in Magento 2.4.* - website_1 and website_2
Install module via composer
In admin configuration set configs for PayU and PayU card for website_1: Enable Plugin - No. For website_2: Enable Plugin - Yes.
Expected result:
On website_1 checkout PayU is not available in payment methods list.
On website_2 checkout PayU is available in payment methods list.
Actual result:
PayU is available in payment method list for both websites.
Research:
This is caused by config active in etc/config.xml. During PayUPaymentGatewayFacade initialization only this config is checked.
The text was updated successfully, but these errors were encountered:
mozok
changed the title
Payment Method shows on checkout even when Enable config set to No
Payment Method is listed on checkout even when Enable config set to No
Dec 14, 2021
I have issue with multistore Magento 2.4.2-p1 setup. I need Payment Method to be available only for one website (now we have 3 websites in one M2 setup). But even so in admin configuration PayU and PayU Card set to "Enable - No" it still displayed on checkout page.
Steps to reproduce:
Expected result:
Actual result:
PayU is available in payment method list for both websites.
Research:
This is caused by config
active
inetc/config.xml
. DuringPayUPaymentGatewayFacade
initialization only this config is checked.Suggested solution:
Add
validatorPool
to payment facades as shown in documentation https://devdocs.magento.com/guides/v2.4/payments-integrations/base-integration/facade-configuration.html.For example facade
KPVirtual
invendor/klarna/module-kp/etc/di.xml
and it'savailability
validator -\Klarna\Kp\Gateway\Validator\SessionValidator
The text was updated successfully, but these errors were encountered: