Support

Home Forums Event Espresso Premium Issues with Stripe

Issues with Stripe

Posted: December 22, 2018 at 12:13 am


jonmaxim

December 22, 2018 at 12:13 am

I’m offering customers three payment options. PayPal (working perfectly). Invoice (working perfectly). And Stripe (which is the issue).

When I go through the buying process on my site, I end at a page where I can select Stripe (as one of the three options).

Window pops up, asking for card details. I complete, hit go and get a green tick box. Close window.

Message unchanged on remaining screen behind.

So I click the Stripe ‘pay now’ button further down the screen. Same pop-up, but with the amount owed showing. Complete card details, hit go, successful payment tick.

Close box. Still no message on screen behind. Any buttons to proceed are greyed out.

When I look at registrations, I can see a pending payment for Stripe.

I approve, and email ‘Event payment details’ message goes to registrant.

Money not showing up on Stripe.

I have a Stripe account set up successfully.

How to fix?

Thanks in advance for your help.


Josh

  • Support Staff

December 22, 2018 at 8:07 am

Hi,

We’ve received your request for priority support. After checking the registration pages on your site, I can see there’s a JavaScript error and the error is preventing the Stripe modal from submitting the payment information. The JavaScript error is quite likely the result of loading a different version of the jQuery JavaScript library. This can be fixed by loading the version of jQuery that’s bundled with WordPress.

In order to apply the fix we’ll need sFTP access or access to another way to edit files on the site (cpanel works too). I’m afraid that part of the support form was left blank. Can you resend the support token and include temporary sFTP access?


jonmaxim

December 22, 2018 at 9:50 am

Thanks – have done that.


Josh

  • Support Staff

December 22, 2018 at 10:32 am

Thanks for sending. The trouble turned out to be within the theme’s /inc/class.JM_WP.php file where it did this:

wp_deregister_script('jquery');
wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js', array(), null, false);

The above will break all kinds of things for WordPress. So those lines have been commented out, and Stripe will work as expected now.

You could check with the theme developer and if they really need jQuery to load from Google’s CDN, then can use this method instead:

https://www.wptutor.io/web/js/jquery-google-cdn

The above method makes sure the version of the library matches what’s bundled with WordPress.


Josh

  • Support Staff

December 22, 2018 at 10:33 am

One other thing: I added a bit of CSS to make that “Pay Now” button for Stripe look like the other buttons on the site. It looked a little out of place without any styling.


jonmaxim

December 22, 2018 at 10:18 pm

You guys are amazing. Issue solved – and with the extra thinking/value of the styling.

A huge thank you.

If you’re looking at this forum and wondering whether to pay for a support token, do it: more than worth it.

The support post ‘Issues with Stripe’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso