Closed galdiuz closed 5 years ago
Hi @galdiuz ,
Thank you for raising this issue, we are going to look at the suggested solution asap.
Best, Attila Adyen
Hi @galdiuz ,
We are going to merge the fix soon. Thank you for raising the issue and suggestions the solution. Best, Attila Adyen
hi @galdiuz , The changes are released in the https://github.com/Adyen/adyen-magento2/releases/tag/4.0.3 version. Best, Attila Adyen
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: