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

Fix payment form breaking after error message #108

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

Conversation

phit
Copy link

@phit phit commented Dec 13, 2024

When you submit for example invoice paylater without agreeing to the data processing, you get an error via showError() in the payment methods _onCreateResource().

However showError() never sets submitting back to false, so any clicks on the submit button after an error never get any processing and unzerResourceId never gets assigned any value, completely bricking the transaction.

--

As an aside, I don't believe setting the submit button blindly to be active in showError() makes much sense either as quite a few payment methods disable that button by default. However fixing and investigating that for every single payment method was out of scope for this PR.

When you submit for example invoice paylater without agreeing to the data processing, you get an error via showError() in the payment methods `_onCreateResource()`.

However `showError()` never sets `submitting` back to `false`, so any clicks on the submit button after an error never get any error processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant