Stripe ‘Place Order’ button not functioning

Hey all, i’m having an issue with getting the payment processing working correctly on a wordpress site.

There seems to be a javascript error triggering that prevents the call from going through when the ‘Place Order’ button is pressed. Same error when the T&Cs checkbox is pressed too.

I can’t locate the origin of this Javascript, but here is a snippet with the error in question:

//for mobile menu
/* When the user clicks on the menu icon,
toggle between hiding and showing the dropdown content */
function showNav() {
document.getElementById(“mobileNav”).classList.toggle(“showmenu”);
}

// Close the dropdown if the user clicks outside of it
window.onclick = function(e) {
if (!e.target.matches(‘.dropNav’)) {
var myDropdown = document.getElementById(“mobileNav”);
if (myDropdown.classList.contains(‘show’)) {
myDropdown.classList.remove(‘show’);
}
}
}

The var, myDropDown, comes back as null on the getElementById call. The error in the JS console:

​

It seems to be the theme or WP code for the mobile menu, but i’m unsure where to locate/fix/disable this portion of code. Any help would be appreciated!

Page this is occuring:

[Checkout – Adelaide Commodore Spares])

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer