Support

Home Forums Event Espresso Premium SSL just installed, not completing payments

SSL just installed, not completing payments

Posted: March 17, 2014 at 4:52 pm


Mike Query

March 17, 2014 at 4:52 pm

Hi,

I am hosting with WP Engine, and recently installed SSL and set it up so all /registration/* pages are forced SSL. The green padlock appears and it’s all secure, however I am now unable to complete any payments. I get through checkout, and by the end it says incomplete with the red exclamation mark.

Any ideas on this? I’m going to ask WP Engine as well.


Sidney Harrell

March 17, 2014 at 6:53 pm

Which gateway are you using?


Mike Query

March 17, 2014 at 7:51 pm

PayPal payments pro


Sidney Harrell

March 18, 2014 at 8:54 am

Are you using EE 3.1 or EE 4? There should be entries in uploads/espresso/logs/espresso_log.txt that correspond with the PayPal transactions. Can you check that and see if it is giving you an error message or code in the transaction record?


Mike Query

March 18, 2014 at 6:29 pm

Well there’s no PayPal transaction information in the log since there were no PayPal transactions that took place, as it is not making it that far. I did try searching for the EE Reg ID, but did not find it in the log.

I’m using EE 3.1


Lorenzo Orlando Caum

  • Support Staff

March 18, 2014 at 9:10 pm

Hi Mike,

I wasn’t able to figure this out from your prior posts but are you seeing any actual payments processing in your PayPal account?

If not, could you try regenerating your API credentials and updating these in your PayPal Pro settings in Event Espresso?


Lorenzo


Mike Query

March 18, 2014 at 9:28 pm

Hi Lorenzo,

Thanks for taking the time to look into this!

I won’t be able to test again until tomorrow as I’ll need WP Engine to re-instate forcing HTTPS, but I can tell you that with SSL activated is when I experienced this issue, and the minute I took off https, registrations worked again (we’ve successfully completed dozens of transactions in the last 24 hours). I’m just getting nervous because we’re processing payments with no SSL, and that’s definitely not a practice we want to make a habit.

I’ll regenerate the credentials, but any other thoughts in the meantime would be most appreciated. Let me know if you need any kind of login/access to take a look.

Mike


Mike Query

March 19, 2014 at 2:36 pm

FYI I just regenerated the API signature. I tested payments without SSL, works well. I’m about to contact WP Engine and ask them to force SSL again and see if I have any luck. Any further help would be appreciated, thanks!


Josh

  • Support Staff

March 19, 2014 at 2:58 pm

Hi Mike,

It might help to check with WPEngine and ask them to verify that they are only forcing the checkout and payment pages to be secure. Another customer on WPEngine was having a similar issue and they later reported it turned out that the entire event-espresso/gateways folder had been force as SSL. To be honest, I don’t know how that’s possible, but that’s what they said.


Mike Query

March 19, 2014 at 4:45 pm

Hi Josh,

So I spoke with both WP Engine and PayPal. WP Engine ensured that it’s just those two pages that are having SSL forced. They didn’t think it was anything else on their end.

Paypal asked me to run a curl command to test the connection with the credential. I sent back the report after WP Engine ran it for me, so I’m waiting to hear back from them, though WP Engine did say that it looks good and the connection is fine.

So, still having trouble figuring out where the breakdown is. It’s unfortunately starting to look like all 3 parties are pretty sure it’s not their issue (theme, EE, WP Engine), which is never a fun place to be :/

Here’s the log


Josh

  • Support Staff

March 19, 2014 at 5:16 pm

Hi Mike,

Please understand that I’m trying to help troubleshoot an issue with payments and in no way am I trying to point a finger at WPEngine. I pointed out something another one of their customer’s reported and I thought it might be relevant and worth checking into. I think they are a great host and I would not hesitate to recommended them.

The breakdown could be in the way the permalink to the payment page is getting handled when things are getting redirected to SSL. We know the payments work when they aren’t redirected to SSL. So what changes when things are redirected in SSL? The link to the payment page!

So here is something you can try if you are comfortable with changing a line of code via FTP:

In event-espresso/gateways/paypal_pro_vars.php on line 35 it normally reads as:

<form id="paypal_pro_payment_form" name="paypal_pro_payment_form" method="post" action="<?php echo $home . '/?page_id=' . $org_options['return_url'] . '&r_id=' . $registration_id; ?>">

Normally the above will redirect to your payment page, but it maybe it will not with the way the SSL is redirecting, so can you try changing it to:

<form id="paypal_pro_payment_form" name="paypal_pro_payment_form" method="post" action="<?php echo add_query_arg(array('r_id'=>$registration_id), get_permalink($org_options['return_url'])); ?>">


Mike Query

March 20, 2014 at 11:29 am

Hey there,

So last night a tech took a look and manually inserted some javascript on the registration page, and it totally worked! Here’s the code he used:

<code>&lt;script type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[
if (window.location.protocol != &quot;https:&quot;) {
    window.location.href = &quot;https:&quot; + window.location.href.substring(window.location.protocol.length);
}
// ]]&gt;&lt;/script&gt;</code>

Funny I guess whatever WP Engine was doing was cutting off communication as you were suggesting earlier. As of right now we have https enabled during checkout, and transactions are completing successfully.

Thanks so much for sticking with me! Looking forward to EE4!


Mike Query

March 20, 2014 at 11:31 am

Oops I pasted the code wrong…let me try again.

<pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><script type="text/javascript">// <![CDATA[
if (window.location.protocol != "https:") {
window.location.href = "https:" + window.location.href.substring(window.location.protocol.length);
}
// ]]></script>

The support post ‘SSL just installed, not completing payments’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Mike Query 5 years, 3 months ago ago

Topic Tags

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!