Skip to content

feat: disable place order button for adyen_cc#58

Merged
khushboo-singhvi merged 2 commits into
adyen-examples:developfrom
fzemmel:issue-55-disable-cc-place-order-button
Oct 3, 2024
Merged

feat: disable place order button for adyen_cc#58
khushboo-singhvi merged 2 commits into
adyen-examples:developfrom
fzemmel:issue-55-disable-cc-place-order-button

Conversation

@fzemmel

@fzemmel fzemmel commented Sep 30, 2024

Copy link
Copy Markdown
Contributor

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-examples#55
@fzemmel fzemmel requested a review from a team as a code owner September 30, 2024 09:56
@khushboo-singhvi

Copy link
Copy Markdown
Contributor

Hello @fzemmel,

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

Best regards,
Khushboo

@khushboo-singhvi khushboo-singhvi merged commit b9d44f9 into adyen-examples:develop Oct 3, 2024
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

3 participants