Support

Home Forums Event Espresso Premium Paid registrations show as Incomplete – Paypal IPN validation failing

Paid registrations show as Incomplete – Paypal IPN validation failing

Posted: January 7, 2014 at 3:00 pm

Viewing 1 reply thread


Michael

January 7, 2014 at 3:00 pm

We have been running EE for nearly 2 years now without issue. Late December all registrations successfully paid through Paypal started showing as Incomplete. This not only creates multiple steps on our administrative side to right things, but it is causing confusion for our students as they are not finishing on our Thank You page, but redirected back to Paypal as if they had not paid.

After combing through the forum posts here and attempting many of the suggested fixes, I contacted my host (Hostgator).
Their final response:

Hello,

We have come across this issue several times recently, it appears that PayPal is blocking connections originating from the primary network interface on the server. Until we know why this is happening and can resolve it we will need to have the PHP curl code use a secondary interface when making the connections. This can accomplished using something like the following to see the curl options:

curl_setopt($ch, CURLOPT_INTERFACE, ‘162.144.4.227’);

Though I am not sure where this will need to be placed within your source to make this happen, I believe that it is one of the following files:

[root@gator3190 /home2/ccti007/public_html/wp-content/plugins]# find -maxdepth 1 -type d -name ‘*espresso*’ -exec sh -c ‘grep -irl paypal {}’ \; | while read file; do grep -li curl $file; done
./event-espresso/gateways/paypal_pro/includes/paypal.nvp.class.php
./event-espresso/gateways/paypal_pro/includes/paypal.ap.class.php
./event-espresso/gateways/paypal/Paypal.php
./event-espresso/gateways/firstdata/settings.php
./event-espresso/includes/espresso-admin-status.php

But you will need to contact your developer to program this option in. Our scope of support for troubleshooting source code is very limited as per our terms of service.

Should this IP become blocked for any reason, please let us know and we will provide you another available one on the server until we have permanent solution in place.

I apologize for any confusion that this has caused.

Does this make sense to you? Which file, and where in that file, should their code be placed? I appreciate any help with this!


Josh

  • Support Staff

January 7, 2014 at 6:53 pm

Hi there,

Part of the problem may be if the bypass payment page option is set to Yes in the PayPal gateway settings -and- the display payment options for pending payments option is set to yes, it will bounce them back to PayPal instead of showing a Thank You page.

If what hostgator is saying correct, and you’re using PayPal (not PayPal Pro), then the file is this one:

/event-espresso/gateways/paypal/Paypal.php

If you look on lines 86-91 of that file you’ll see the curl_setopt commands, which may be a good place to add their suggested code.

Viewing 1 reply thread

The support post ‘Paid registrations show as Incomplete – Paypal IPN validation failing’ 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