This PR fixes an issue where a stripe script was causing payment method validation when transitioning from billing details to payment info in our modal checkout.
We fix this by preventing event propagation on the submit handler in our script.
How to test the changes in this Pull Request:
As admin, enable stripe and ensure you are using the updated checkout experience
As a logged out brand new reader, initiate checkout via any checkout button or donation block
Go through the modal checkout flow until you get to the payment method step
Confirm the payment method does not show any validation errors
Add some invalid payment info (or submit without adding payment details)
Confirm payment method validation errors appear
Add valid payment info and confirm you can complete checkout
Other information:
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes, as applicable?
[ ] Have you successfully ran tests with your changes locally?
All Submissions:
Changes proposed in this Pull Request:
Closes https://app.asana.com/0/1207817176293825/1208747968528669/f
This PR fixes an issue where a stripe script was causing payment method validation when transitioning from billing details to payment info in our modal checkout.
We fix this by preventing event propagation on the submit handler in our script.
How to test the changes in this Pull Request:
Other information: