Adyen / adyen-magento2-hyva

MIT License
7 stars 4 forks source link

feat: disable place order button for adyen_cc #58

Closed fzemmel closed 1 month ago

fzemmel commented 1 month ago

Disable button as default. Button gets enabled after all cc form fields are filled out correctly.

Closes #55

Summary

When choosing cc as payment method the place order button should be disabled, until all cc form fields are filled correctly. This PR changes method evaluateCompletion() in the Magewire CreditCard component to disable the button.

The button is enabled after all fields in the cc form are valid.

Tested scenarios

Tested on Magento 2.4.6-p7 with Hyvä Checkout 1.1.24 and Adyen Hyvä Module 1.0.0 Tested as guest and logged in customer Tested only with Adyen Test Plattform

Fixed issue: #-55

khushboo-singhvi commented 1 month ago

Hello @fzemmel,

Thank you for your contribution. This PR has been merged and will be released on the next upcoming version.

Best regards, Khushboo