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
Magento version: 2.2.8 Plugin version: 2.4.3 (tested, but would probably appear in 4.0.2 as well) Description:
If installments has been enabled for credit card payment and is later disabled the value saved for payment/adyen_cc/installments will be a:0:{}. This means that in Gateway/Validator/InstallmentValidator.php the validation on row 82 can succeed even though installments is disabled in the config, as $installmentsAvailable would be "a:0:{}" and PHP strings are truthy.
Magento version: 2.2.8
Plugin version: 2.4.3 (tested, but would probably appear in 4.0.2 as well)
Description:
If installments has been enabled for credit card payment and is later disabled the value saved for
payment/adyen_cc/installments
will bea:0:{}
. This means that inGateway/Validator/InstallmentValidator.php
the validation on row 82 can succeed even though installments is disabled in the config, as$installmentsAvailable
would be"a:0:{}"
and PHP strings are truthy.Proposed solution is to also check
payment/adyen_cc/enable_installments
. See diff below:The text was updated successfully, but these errors were encountered: