- last update
over 1 year ago 1 pass - ๐บ๐ธUnited States texas-bronius
This is also problematic in the case of the Stripe element being hidden, too. We have "[x] Use my current card on-file" and "[ ] Use new payment" selectors that show/hide the Stripe element form when "use current" is selected based on a #states :visibility on the 'stripe' form element.
In our case, I was able to prevent the Stripe form submit by checking parent visibility:
function onFormSubmit(e) { var $form = $(e.currentTarget); + if ($(element).parent().css('display') === 'none') { + return; + } ...
but I see that our stripe.js is highly modified, so I don't have a simple patch to contribute at this time. ymmv :)
- Status changed to Needs work
20 days ago 7:08pm 29 November 2024 - ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
prem suthar โ made their first commit to this issueโs fork.
- Merge request !15Resolve #3219776 "Prevent the javascript submission" โ (Open) created by prem suthar
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
Please Review The Mr Re-Rolled From the #8.