Support

Home Forums Event Espresso Premium Getting Stripe to work EE3

Getting Stripe to work EE3

Posted: May 1, 2015 at 12:13 pm

Viewing 16 reply threads


LearnWP

May 1, 2015 at 12:13 pm

Hi,

I’ve activated Stripe and added the keys. It does add the cc form to the checkout process. I contacted WPEngine and they removed the caching for the checkout pages.

Is there something I’m missing? Payment isn’t working. I have searched but I don’t see any additional documentation on the site.

I’ve turned it back off for now.

Thanks for your help!


Tony

  • Support Staff

May 1, 2015 at 12:42 pm

Hi Ruth,

Whan you say payments aren’t working, is there an error message shown anywhere?

What is it that happens to show the payments aren’t working?


Josh

  • Support Staff

May 1, 2015 at 12:46 pm

Hi Ruth,

Here’s the documentation for the EE3 Stripe Payments settings:

https://eventespresso.com/wiki/payment-settings-ee3/#Stripe

The gotchas I usually run across with setting this up are missing characters for the Secret and Publishable key fields. You can make sure those are double checked. Also, if the Force HTTPs option is there, it should only be checked if the site has a valid SSL certificate.


LearnWP

May 1, 2015 at 1:13 pm

Hi Josh & Tony,

Thanks for replying.

Yes those settings are all correct and I have an ssl certificate working.

No error messages.

I’ve turned it back on. Here’s a link to a test event https://learnwp.ca/event-registration/?ee=37

You can see if you enter a cc no charge goes through.

Stripe says there are no error logs. I checked error logs by FTP and they are blank.

Also … when someone pays by Paypal it no longer shows as complete – we have to manually go in and set that they have paid. This has been happening for a long time but it used to work.

Is this something we can troubleshoot in the forum or do I need to purchase a support ticket?


LearnWP

May 1, 2015 at 1:26 pm

I went into Paypal and the IPN notifications were off. I’ve turned them back on so that will likely resolve this last issue.

I would appreciate your help with this. We had a student trying to pay with cc but it didn’t go through so this is really urgent for me to fix.


Josh

  • Support Staff

May 1, 2015 at 1:55 pm

Hi Ruth,

If you go into your Stripe account, there will be two different sets of API keys. One for testing, and one for live. Can you check which ones are input in Event Espresso Payment settings?


LearnWP

May 1, 2015 at 2:04 pm

I have the live API keys in


Josh

  • Support Staff

May 1, 2015 at 2:14 pm

Hi Ruth,

If you view the web page source for the page that captures the billing info, you’ll see a few problems:

1) The jQuery library is loaded twice on the page. That’s causing other JavaScript errors to occur.

2) Uncaught ReferenceError: EEGlobals is not defined from stripe.js

I suspect the code outlined here in pink is causing the breakage. Is that something you can remove?

There are WordPress plugins that can be used to load in custom fonts without loading in a second copy of the jQuery library.


LearnWP

May 1, 2015 at 2:31 pm

Thanks Josh I removed the code but it still didn’t work.


Josh

  • Support Staff

May 1, 2015 at 2:58 pm

Hi Ruth,

It did correct issue #1 and clears the path to fix the other error. The specific error Uncaught ReferenceError: EEGlobals is not defined from stripe.js might be a tricky one to troubleshoot because it could be from plugin or theme conflict.

Instead of going through and troubleshooting plugin conflicts though, what you can do is open up /wp-content/plugins/event-espresso/gateways/stripe/stripe.js and comment out line 5 where it has this:

$('#processing').html('<img src="' + EEGlobals.plugin_url + 'images/ajax-loader.gif">');

so when it’s commented out it will look like this:

// $('#processing').html('<img src="' + EEGlobals.plugin_url + 'images/ajax-loader.gif">');

Generally speaking, the response is so quick you don’t see the ajax spinner anyway.


LearnWP

May 1, 2015 at 3:28 pm

Thanks so much for your support with this.

I have done these things but still don’t see it working.

I went into Stripe and I do see Tony’s attempt with a test credit card. But I don’t see any of my attempts with a real card!


LearnWP

May 1, 2015 at 3:46 pm

I see what happened. Tony’s worked (and now I got one to work) but this requires entering the information again on the Thank you page down below. People who arrive here will think it is already processed and won’t enter it a second time below.

I turned of the cvv and postal code verification in stripe but maybe I didn’t need to do that.


LearnWP

May 1, 2015 at 3:59 pm

The registration process seems to have too many pages. Is there a way on the second page to combine this so I don’t have two confirm registration buttons?

So I need to figure out why it is requiring the information to be entered in twice


LearnWP

May 4, 2015 at 8:17 am

Hi Josh,

Can I set you up as a user and give you admin access to look at how I have this setup? Do I need to purchase extra support for this?


Josh

  • Support Staff

May 4, 2015 at 11:06 am

Ruth,

RE:

The registration process seems to have too many pages. Is there a way on the second page to combine this so I don’t have two confirm registration buttons?

It turns out you can eliminate the middle page entirely. You go into Event Espresso > General Settings and set Skip Confirmation Page during Registration Process? to Yes. This will remove one page of the registration process.

RE:

So I need to figure out why it is requiring the information to be entered in twice

I can help you with that, although I checked and don’t see where it’s asking for the same information twice that’s not already autopopulated. One thing to keep in mind, the registrant may be different than the name on the credit card. So it’s by design that a first name + last name is asked for on the registration form and on the billing form. Along with that, what’s input for those fields is auto-populated on the billing form.


LearnWP

May 4, 2015 at 11:26 am

Thanks Josh – that’s better with one less page

So what happens is when I enter the cc info it takes me to the thank you page but no charge goes through

If after I land on this thank you page and click the cc icons below and re-enter all the information here. It seems to work. You can try cc numbers from the Stripe testing page https://stripe.com/docs/testing


LearnWP

May 4, 2015 at 11:44 am

Oh wow. It is working now.

I turned off that extra page and then realized the Thank you page wasn’t using the SSL so I added the SSL to that page and now it works.

$1 was charged to my cc

Thank you!

Viewing 16 reply threads

The support post ‘Getting Stripe to work EE3’ 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