'No Stripe on Woocommerce with custom theme

Sorry to bother you but wordpress forums are not responding.

I just developed my custom theme on WordPress to which I integrated the Woocommerce and Stripe plugins. However, when ordering, the Stripe module, although present in the list of payment solutions, no longer displays the form fields for entering your bank details. Instead of these fields are comments (“a stripe element will be inserted here”). This is indeed from the js, the error states that "Stripe" is not defined as well as "wc_stripe_params" and many others.

All these errors disappear with classic themes such as twentySeventeen or other, but I cannot find the method to correctly load the js, neither in the files of the classic theme, nor on the internet.

Thanking you in advance for your time.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source