Forums

paypal ipn not working

ataylor14 07 Dec, 2015
Hello
I have paypal redirect-full now on a form that was working and firing emails when I had paypal-redirect trial.

Problem: the paypal does not seem to send anything to the specified 'notify-url' (=the form +event=ipn).

When I type in the browser the 'notify-url' link it looks as if the events in the 'ipn' event seem to be done - I have an email just before the listener and one after the listener with the code:
<?php
echo'<div>$_POST: '.print_r($_POST, true).'</div>';
?>
of course in this case the POST array is empty.

But from Paypal no ipn message is sent to the notify_url. Also in the simulator if I type ipn again nothing is done.
Please please can you help. I have looked and tested this problem for hours now and I do not seem to find the problem.

Thank you
Amelia
GreyHead 07 Dec, 2015
Hi Amelia,

Where and how are you setting the notify_url?

What Debugger output do you see if you set the PayPal Redirect to Debug - that should show all the values being passed to PayPal.

Bob
ataylor14 07 Dec, 2015
Hello Bob
After testing and testing also using the demo I have found the following situation.

My site is hosted with hostgator. When working on teh back end I usually log on with a secure link that has the words "hostgator" etc in it not the usual url/administrator. Thsi means that when I installed the Full version of the Trial this was somehow attached to my "hostgator url" for the site. So when I set the 'notify url' to be my actual site url (not the secure hostgator link) the ipn listener did not work.

So what I did I set the notify_url to go to the secure address.

Does this make sense? Will such a situation cause problems? Should I activate again the Full version but this time logging in as mysiteurl/administrator?

Thank you
Amelia
GreyHead 08 Dec, 2015
Hi Amelia,

Sorry but this is new to me, I don't have the full version of the action to see how it works. Please contact Max using the Contact Us menu above and link to this thread. He should know exactly how the action is linked to the site URL>

Bob
ataylor14 14 Dec, 2015
Hello Bob

My form seemed to work but when I switched back from sandbox to the real paypal account and then back to re-test in sandbox again the emailing bit on the form is not working.

I am going crazy because I did not change anything on the form except added a captcha before submit. I even removed it and still the emailing to the customer I have in the ipn event stopped working.

In the ipn event on the form I have
1) email event to test the listener
2) listener
3) switch event checking the payment_status
3.1 on success I update a table
3.2. on success I also Read DB x 2
3.3. on success I also email using the values I read at 3.2
3.2 on fail I send an email
4) email after switch

1+4 do not work at all - no email is being sent.
3.1 is working and the table is updated with values from the POST array received from paypal
3.3 does not work - no email is sent
3.2 is working if for example simply type in teh url for the notify_url in the browser

My question is why do the emailing actions not get done at all? Is it the case that the listener is not agreeing with paypal? In that case why the 3.1 bit gets done?


Thank you for your help.
Amelia
This topic is locked and no more replies can be posted.