I have a bug where a user is able to pay more than once if they quickly fill out the payment form and click the submit button very fast (more than once).
I need to follow content security policy so that means no inline javascript.
I have some code that disables the button after the first click, but the problem is the form does not submit. I would appreciate any help.
I am not sure if I need to combine the two javascripts somehow. Without the top javascript code, the form validates and submits fine but it has that bug.