wallycobra
wallycobra

Reputation: 3

Stripe Payment Button Not Responsive

The button works on certain "post" type pages but not this one: https://dynamynd.com/buyables/test/

I've tried to use "compat_mode=1" in the shortcode, but it did not fix the issue.

I get this error in the web inspector:

Uncaught ReferenceError: jQuery is not defined
at stripe-handler.js?ver=2.0.10:144

I believe there is some clash between the plugin and our custom theme.

Upvotes: 0

Views: 179

Answers (2)

Ravi Kumar
Ravi Kumar

Reputation: 443

You have included jquery file at the bottom of the page

<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>

If you move this file in the header file then you will not get the error "The jQuery library is not defined"

Upvotes: 0

snackOverflow
snackOverflow

Reputation: 36

So this is saying:

The jQuery library is not defined within this specific file stripe-handler.js?ver=2.0.10 at line 144

This file may be looking to use the jQuery library before its being scripted in. Right now jQuery is being brought in at the body of the html file.

It should be brought in between the tags at the top of the page to allow its use by .js files defined later on.

Upvotes: 1

Related Questions