Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable place order button for adyen_cc #58

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fzemmel
Copy link

@fzemmel fzemmel commented Sep 30, 2024

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

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

Closes Adyen#55
@fzemmel fzemmel requested a review from a team as a code owner September 30, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ECP-9497] Place order button should be disabled for credit card payments on load
1 participant