[SOLVED (for me)] PayPal IPN + notify.php

(1/5) > >>

Simon:
This is a fix that work for me trying to get PayPal IPN to change the status of an order to CONFIRMED when a payment was made through PayPal.
Don’t know if this will help anyone else, it seems as if notify.php has a mind of it’s own after reading through this forum trying to solve my problem :)
1)   Take a clean version of notify.php and apply Gregdev’s fix;
    http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=23922.msg65191#msg65191
2)   Than because I also think that a customer should only receive a confirmation email after they have paid, apply takeroyd’s fix;
    http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=24147.msg74094#msg74094
3)   Move the modified notify.php into the web root (I have no idea if this is a security risk)
4)   In the Payment Extra Info textbox change the notify_url to;
   Code:

"notify_url" => SECUREURL ."notify.php",
That’s it – worked for me, hope it helps.
Simon

gregdev:
Thanks for the suggestion.

When you say 'a clean copy,' which version of VirtueMart are you referring to?

Why do you move notify.php to the web root? It should work fine where it is (but, as you pointed out, it does seem to have a mind of its own). Is something different in your situation? (If you try to use this with Joomla! 1.5, it may not work, since some a compatibility file will not be loaded.)

Greg

Simon:
Quote from: gregdev on April 07, 2007, 17:33:20 PM

When you say 'a clean copy,' which version of VirtueMart are you referring to?

I used 1.0.10, it's the version I have running but I've been ****ing around so much trying to get it to work I figured I'd start with a clean copy :)
Quote from: gregdev on April 07, 2007, 17:33:20 PM

Why do you move notify.php to the web root? It should work fine where it is (but, as you pointed out, it does seem to have a mind of its own). Is something different in your situation? (If you try to use this with Joomla! 1.5, it may not work, since some a compatibility file will not be loaded.)

Don't think I'm doing anything too different, using Joomla! 1.0.12. Just couldn't get it to work when it was under the administartor folder, popped it into the root and it worked. Unless there is any serious security risk of having it in the root folder i'll just leave it there :)
Cheers
Si

gregdev:
Quote from: Simon on April 08, 2007, 07:49:51 AM

Don't think I'm doing anything too different, using Joomla! 1.0.12. Just couldn't get it to work when it was under the administartor folder, popped it into the root and it worked. Unless there is any serious security risk of having it in the root folder i'll just leave it there :)


No, there should be no security risk due to moving it. I've just seen people having problems with notify.php for so long, I keep hoping there is some silver bullet that will end the problems.

So, if you take your notify.php, with the other changes you've made, and put it back, then it stops working? (Of course, you'd need to change your #4 back.) Can you check your apache error logs for some hint as to why this might be happening? That would be really helpful.

By the way, good work on your solution.

Greg

Harry:
Quote

Why do you move notify.php to the web root?

I also have this big problem with notify.php. As written in "PayPal explained" (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=11167.0), notify.php needs free access. But the problem is that in Joomla, the administrator folder usually is protected by .htaccess. But in this case, a notify.php blocked by a .htaccess file is useless. Before giving up this additional protection, I'd rather switch to another shop system. I appreciate this strict separation between frontend and backend a lot.

Now, you brought me the right idea. Just moving notify.php out of the administrator folder (and of course doing some small adaptions).

Navigation

[0] Message Index

[#] Next page