Support

Home Forums Event Espresso Premium URGENT: Paypal IPN validation failing – Getting Incomplete status

URGENT: Paypal IPN validation failing – Getting Incomplete status

Posted: March 12, 2014 at 2:58 pm

Viewing 8 reply threads


Maisha Walker

March 12, 2014 at 2:58 pm

Hello,

We are experiencing issues with payment status (showing as incomplete) when user gets back from PayPal.

It is exactly the same issue as explained here:
https://eventespresso.com/topic/paid-registrations-show-as-incomplete-paypal-ipn-validation-failing/

As we understand this issue is related to Hostgator server.

Hostgator provided following code: curl_setopt($ch, CURLOPT_INTERFACE, ’162.144.4.227?); and we want to know what exactly we need to replace in /event-espresso/gateways/paypal/Paypal.php file?

Thank you so much for a quick reply! 🙂


Sidney Harrell

March 12, 2014 at 3:25 pm

In EE 3.1, it is in Paypal.php anywhere between lines 86 to 91, where the other curl_setopt lines are:

$error["set_post"] = curl_setopt($ch, CURLOPT_POST, 1); // Set curl to send data using post

Don’t worry about the $error part, just insert the line that hostgator gave you as a new line in that section.
In the code that you posted, I think that question mark is supposed to be a quote mark, correct?


Lorenzo Orlando Caum

  • Support Staff

March 12, 2014 at 3:49 pm

Hi Maisha,

I think that server IP was for that specific customer. Did Hostgator share that line with you?

I ask as I ran a Google search for that line of code and I only saw it mentioned in search results for Event Espresso.


Lorenzo


Maisha Walker

March 17, 2014 at 6:34 pm

Hi Lorenzo,

We added the line, but it did not work. Seems that Hostgator guys do not know how to solve this. (We found that line in other post here on forum)

This is from our EE LOG:

Errors resulting from the execution of curl transfer: bind failed with errno 99: Cannot assign requested address[03/17/2014 1:30 PM] – FAIL: IPN Validation Failed . /cgi-bin/webscr : http://www.paypal.com

IPN POST Vars from gateway:
mc_gross=250.00, protection_eligibility=Ineligible, item_number1=, payer_id=HBSVXB2HDGHUA, tax=0.00, payment_date=10:29:18 Mar 17, 2014 PDT, payment_status=Completed …

Could you please suggest our next step? This issue is causing a lot of troubles for us and we need to solve it ASAP.

Thank you!


Tony

  • Support Staff

March 18, 2014 at 4:46 am

Hi Maisha,

As Lorenzo mentioned, the IP address within that line of code you have found was likely for that specific customer on a specific server.

Are you hosted with Hostgator? If so I would recommend contacting them explaining the issue, it appears they are aware of the issue and should have be able to provide a fix specific to your server.


Maisha Walker

March 18, 2014 at 1:38 pm

Hi Tony,

Thank you for your reply! We’re getting closer. The issue was causing the curl line we added. We removed it eventually and now IPN confirmation works.

However IPN confimation delay issues still persists. Now, we understand this might be an issue caused by slow PayPal IPN response, but what really bothers us, is the redirection to PayPal when user gets back from paypal to the website – thank you page (After payment is done).

How could we get rid of that second redirection?
Is there anything we can do progamatically to get rid of that second redirection?

(Note we do want to have “bypass payment page option” set to “Yes” and the display payment options for pending payments option set to “yes”.)

Thank you!


Josh

  • Support Staff

March 18, 2014 at 1:51 pm

You can get rid of the second redirection by changing the option in Event Espresso>General settings that is labeled “Show payment options for “Pending Payments” on the Payment Overview page?”. If you set it to “No” the bypass payment page redirect will not happen when they return from PayPal.


Maisha Walker

March 18, 2014 at 2:44 pm

Thank you Josh! “Pending Payments” has been already set to “NO”, but the redirection is still happening.


Josh

  • Support Staff

March 18, 2014 at 2:53 pm

I forget to mention that you will also need to change the “Default Payment Status (this value will be automatically filled in for each person’s payment status, until payment is made, for each event):” to Pending to make this work.


Maisha Walker

March 18, 2014 at 6:11 pm

That worked! Thank you Josh!

Viewing 8 reply threads

The support post ‘URGENT: Paypal IPN validation failing – Getting Incomplete status’ 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