Support

Home Forums Event Espresso Premium EE4 paypal return https issues and registration checkout hanging in Firefox

EE4 paypal return https issues and registration checkout hanging in Firefox

Posted: May 19, 2014 at 8:32 pm


Spencer Mann

May 19, 2014 at 8:32 pm

Hello,

I am running a new WP install version 3.9.1 and have EE4 installed. The link to the registration page is: https://garagedoorstudio.com/registration-checkout/

I am having 2 issues:

1) Despite the fact that I have https forced for the thankyou page – I am receiving a warning when returning from Paypal to the thankyou page (as reported by many other EE users). It appears that the return from Paypal is sending users to the http version of the thankyou page which then triggers the warning – before the page is redirected to the https version of the page. How can I fix this?

2) Although registration and payment is working correctly in Chrome and Safari (with the exception of the warning I mentioned above) in Firefox the registration process hangs (with the gear spinning endlessly) and does not allow me to proceed to payment options. This issue only appeared since I forced https, before that it was fine.

I have read all of the documentation on ssl / https configuration with Event Espresso as well as configuration of Paypal Standard – but I am finding VERY LITTLE documentation for EE4. For example is there a “force https” configuration option in EE4 for Paypal standard?

Thanks for your help,

Spencer


Lorenzo Orlando Caum

  • Support Staff

May 19, 2014 at 9:12 pm

Hello Spencer,

HTTPS is usually used for on site payment gateways that process sensitive financial information.

Are you using the auto return URL option? That will allow you to specify an https URL.

Also, it looks like only certain pages of the site are available in https. For example, if I try to load your events page over https, then it returns me to http.


Lorenzo


Spencer Mann

May 19, 2014 at 9:37 pm

Hello Lorenzo,

I would have preferred not to have used https, however based on multiple threads in your support forum it appears that only way to avoid a “non secure” warning when returning from Paypal is to return to an https thankyou page. Is there another option to avoid the “non secure” warning other than returning to an https page?

And yes I already have paypal return on and configured for https://garagedoorstudio.com/thank-you/ however this does not appear to have made any difference. Here is a screen cap of my settings in Paypal – I am still receiving the warning. Is there a setting within Event Espresso to force the return to https? I though in EE3 there was a check box to force https, does this not exist in EE4? Can you PLEASE provide more information about how to resolve this issue?

And yes I have configured the site to force http for pages that are not set for https to avoid slower loading times on other pages on the site.

Thanks


Spencer Mann

May 20, 2014 at 8:26 am

Hello again, I just spoke with Paypal at length and they confirmed that the auto-return behavior from Paypal back to the thankyou page is being controlled through Event Espresso, not through “website payment preferences” on Paypal. In other words although I have enabled auto-return on Paypal and have directed that auto-return to the correct https URL – this will not resolve the problem because the auto-return behavior is being controlled by Event Espresso.

So I need to know how I can modify the auto-return behavior within EE4 to force https? In EE3 there was a clear checkbox option to “Force HTTPS on Return URL” that was part of the configuration options for Paypal Standard. Where is this option for EE4?

Thanks


Lorenzo Orlando Caum

  • Support Staff

May 20, 2014 at 3:12 pm

Hello,

I’ve sent a message to a developer regarding this and I’ll update this support post once I have more information.


Lorenzo


Spencer Mann

May 27, 2014 at 7:27 am

Hello Lorenzo,

Any word from your development team about this issue? My client has been waiting more then a week for a response on this and I will need to resolve it soon or use another event registration plugin.

Thanks


Sidney Harrell

May 27, 2014 at 10:55 am

If you want to change it now, you can go into plugins/EE4/modules/gateways/Paypal_Standard/EE_Paypal_Standard.class.php and change line 383 from:

$this->addField('return',  $this->_get_return_url($primary_registrant));

to:

$this->addField('return',  set_url_scheme( $this->_get_return_url($primary_registrant), 'https' ));


Spencer Mann

May 27, 2014 at 12:57 pm

Thanks Sidney. I am still completing testing, but that appears to have resolved the problem. Will this option be provided as a check-box on the PayPal Standard configuration UI in future releases in EE4?


Sidney Harrell

May 27, 2014 at 2:18 pm

We’re still hashing it out with the development team, so can’t tell you yet which version it will first appear in, but we will be getting it added to the Paypal settings UI.


Josh

  • Support Staff

May 28, 2014 at 2:11 pm

Hi Spencer,

I wanted to give you an update on the Firefox checkout hanging issue: It turns out that Firefox will block non-secure elements on a secure page. In this case, it’s the wp-admin/admin-ajax.php script that the registration process relies on. You can work around this issue by securing the WordPress admin. In the WP HTTPS plugin settings you’ll find an option labeled “Force SSL Administration” where you can check that box. You’ll need to log in after making this change, and now your WP admin will be secured, and the registration page will be fully secured.


Josh

  • Support Staff

June 3, 2014 at 2:36 pm

Another update:

Instead of modifying the PayPal gateway file directly, this function can be added to your sites functions file or in a custom function plugin:

https://gist.github.com/joshfeck/3ddccb8b3d859d8392f4

The support post ‘EE4 paypal return https issues and registration checkout hanging in Firefox’ 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