Adding JQuery functions in Theme breaks Stripe: Error Unable to complete payment! Missing paymentIntentID.
We have added some JQuery code to a Drupal 9 theme and if we change the form in anyway, even just adding and removing classes to the "Confirm" button, the payment is not completed.
Example code below:-
CRM.$(function($) {
$("#_qf_Main_upload-bottom").removeClass().addClass("btn btn-success");
});
I appreciate the above could be achieved through CSS but it's just an example of what is breaking the form.
Thanks in advance for any help or advice!