VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: Mizpah on April 09, 2009, 12:51:35 PM

Title: Paypal IPN - Notify.php - permissions/htaccess
Post by: Mizpah on April 09, 2009, 12:51:35 PM
Hi Guys,

I understand my notify.php script to be:

http://www.MYWEBSITE.com/administrator/components/com_virtuemart/notify.php

What permissions do I need to set this to ?

It is currently 755, I am am however wondering what I should see when I point a browser to it ?

Currently I see a white page and thats all!


I have seen a note in the sticky, about .htaccess allowing access to the file - what am I looking for here ?

As it stands now, the paypal process works on the sandbox (Customer side), but not payments ever get confirmed in the backend.

Using the PayPal IPN Simulator, it tells me everytime that an IPN is sent, but I never recieve anything!


Many thanks in advance for any help  :D



Mizpah
Title: Re: Paypal IPN - Notify.php - permissions/htaccess
Post by: ajredding on April 09, 2009, 19:39:10 PM
If you are using the default code that comes with VirtueMart then there is a big reason you aren't receiving any IPN notifications.  The code by default on VirtueMart is rejecting the transaction because it's not matching the "source" servers. 

If you take a quick look at this post http://forum.virtuemart.net/index.php?topic=52872.msg174360#msg174360 (http://forum.virtuemart.net/index.php?topic=52872.msg174360#msg174360)

You'll see the change I'm talking about.

As far as permission for your Notify.php file itself.  It should be read only to public. 
Title: Re: Paypal IPN - Notify.php - permissions/htaccess
Post by: Mizpah on April 10, 2009, 00:50:03 AM
Thanks Ajredding,

I *think* I applied that code change - however, I will go look at my code base and make sure, I have made so many assorted changes recently, its hard to be sure! I will also check my perms on notify.php - I appreciate the responce!