"No payment method selected. Please select one." error is shown if additional validators fail even if the payment method is selected. For example if terms and conditions are not accepted.
To Reproduce
Create new terms and conditions item that is manually applied
Go to Stores > Configuration > Sales > Checkout > Checkout Options. Set the Enable Terms and Conditions field to Yes.
Add product to cart
Go to checkout
Select "Paytrail for Adobe Commerce" payment method and choose any payment method
Leave the terms and conditions checkbox unchecked
Place Order
Expected behavior
"No payment method selected. Please select one." error is not shown.
Actual result
"No payment method selected. Please select one." error is shown.
Screenshots
Additional context
Tested with fresh Magento version 2.4.6 and paytrail/paytrail-for-adobe-commerce version 1.3.2.
"No payment method selected. Please select one." error is shown if additional validators fail even if the payment method is selected. For example if terms and conditions are not accepted.
To Reproduce
Expected behavior "No payment method selected. Please select one." error is not shown.
Actual result "No payment method selected. Please select one." error is shown.
Screenshots
Additional context
Tested with fresh Magento version 2.4.6 and paytrail/paytrail-for-adobe-commerce version 1.3.2.
https://github.com/paytrail/paytrail-for-adobe-commerce/blob/master/view/frontend/web/js/view/payment/method-renderer/paytrail-method.js#L122-L128