- Issue created by @tostinni
- 🇫🇷France tostinni
tostinni → changed the visibility of the branch 3470404-incorrect-validation-logic to hidden.
- Status changed to Needs review
3 months ago 2:51am 27 August 2024
After configuring Stripe with the test keys and correcty enabling domains in Stripe dashboard, the payment works fine with a test credit card, but when selecting either Apple Pay or Google Pay, a message "Another step will appear to securely submit your payment information." will appear but the submit button will stay disabled.
Create a webform with a Stripe Payment element with Google/Apple Pay enabled and try to validate your form, the submit button will be disabled.
After digging in the code, we found this:
paymentElement.on('change', event => payButton.disabled = event.empty || event.error);
This logic seems incorrect as event.empty
refere to the fact that no payment information has been entered.
What we're looking for seems more likely to be that the information is complete hence checking event.complete
.
MR to do
Needs review
1.0
Code
tostinni → changed the visibility of the branch 3470404-incorrect-validation-logic to hidden.