News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

PayPal IPN fails in v2.6.16

Started by optmax, February 28, 2015, 14:20:00 PM

Previous topic - Next topic

falko1

I have found a solution for my problem.
Yes, it is very simple maybe it works for some other users.
I will share my solution with you.

I have a Joomla 2.5.28, VM 2.6.17 and AdminTool 3.4.4.
I have add the IP´s from the paypal notify.paypal.com (173.0.81.1, 173.0.81.33, 66.211.170.66) into the "Whitelist for Administration" in the Configure WAF page of the AdminTool.
Now the payment with paypal works perfect.

I can´t explain the reason... my english is not good enough.

Hope it helps


volksman3

Thanks Falko1, i just tried your fix and also ensured the Paypal IPs were not blocked by my servers csf fire wall (which they were not) but sadly it did not fix my issue.

No emails sent to customer, or admin and not update from pending to confirmed ;o(
Parachutes are like minds, they only work when they are open!
http://www.akirastudio.co.uk

volksman3

Hi Milbo,

Could you explain what film i shout put vmdebug('My server variable',$_SERVER); in?

Regards
Tony
Parachutes are like minds, they only work when they are open!
http://www.akirastudio.co.uk

optmax

VM 2.6.17 Component & AIO
J! 2.5.27

Milbo - thanks for all your time spent on this
I can now report some success  :)

As I know there is no Reverse Proxy involved at my server, on my test site I did this:
Deleted all my three Payment Methods (I had PayPal live, PayPal SandBox and Offline Credit Cards)
Reinstalled 2.6.17 Component & AIO
Recreated my PP Sandbox Payment method and made a test order - all worked , IPN received and order status updated
Recreated my Offline Credit card payment method - tested, all OK
Tested PP Sandbox again - all OK


I will now try on my live site and report back.



optmax

Just updated my live site to 2.6.17 Component & AIO

This time I did not delete/recreate existing Payment Methods.

Test order using PayPal Sandbox has worked as expected - I will now watch out for a real order.

Thanks again Milbo & Alatak


luigi.mor

This worked for me:

1) update to 2.6.17

AND

2) set (in Paypal account) charset UTF-8

look at https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-language-encoding  -  other options
change both charset to UTF-8

(Paypal is in italian)

driver_wedge

VM 2.6.17 seems to work for me. I haven't changed any settings within VM or Paypal, just a normal install of VM & AIO.

Thanks Milbo & Alatak. I too will try to support the VM subscription very soon.

Milbo

Nice, great it works now for most people.

Quote from: volksman3 on March 10, 2015, 19:39:58 PM
Oh boy, thanks for the update but this is way beyond the average users head never mind the fact that most users don't even have access to there servers at this level and trying to get a host to make these changes who don't generally want to get involved is going to be a nightmare for allot of people, is there not easier way to get Virtuemart working again without the need for technical server configurations?

You seem to misunderstand the problem. There is something in your setup, which prevents that your server gives the correct client IP. This means that there is a special setup, which usually also includes these technical details.

What I did now is to use the defacto convention, but as I said before it is NOT a rule, and NOT a real convention. This is the reason it helps most users, but not anyone. So your hoster must give you this information.

But as I wrote before, you can try to find yourself. It should even work with the joomla sysinfo. Go here /administrator/index.php?option=com_admin&view=sysinfo to the tab PHP Information, then search in the Apache Environment variables for your own IP. There you can see also the problem, you will have something like

SERVER_NAME myshop.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1

But remote address should be the IP of the client. Actually yours. So in your case, you need to find a variable there, with an IP, which is yours (check your router, to get your IP). So if you find then the variable with your IP, just enter it in the config field and it should work, then.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

driver_wedge

Just an update from me. All our pending IPNs seem to have come through now (and changed our Shipped orders back to Confirmed...lol), but things seem to have settled now and any new orders from today have worked 100%.

Two weeks of head-scratching, but now happy to have it resolved! :-)

alatak

Quote from: falko1 on March 10, 2015, 20:20:15 PM
I have a Joomla 2.5.28, VM 2.6.17 and AdminTool 3.4.4.
I have add the IP´s from the paypal notify.paypal.com (173.0.81.1, 173.0.81.33, 66.211.170.66) into the "Whitelist for Administration" in the Configure WAF page of the AdminTool.
Now the payment with paypal works perfect
Yes, it is a interesting info.

volksman3

#40
Hi Milbo,

Thanks for the update, i uploaded a phpinfo file to my server to get the info you mentioned but mine looks ok as follows:

REMOTE_ADDR: 99.250.196.117 (this is my local ip so all good there)

SERVER_ADDR: 107.6.20.230 (this is the IP of my server where the site is hosted)

SERVER_PORT: 80

All checked out and looks correct based on what you are saying but i still don't get any customer or admin emails sent out or Paypal order updates to Confirmed?

I tried one of the other fixes above  e.g. deleting my paypal payment method, installing 2.6.17 again and then setting up a new paypal payment but this made no difference always.

A further update is i looked at the server error log and see i get a 404 for the IPN return URL which may be the issue but no clue how to fix it:
[Wed Mar 11 17:52:37 2015] [error] [client 99.250.196.117] File does not exist: /home/canhost/public_html/naturalz.ca/404.shtml, referer: http://www.naturalz.ca/index.php?option=com%5fvirtuemart&view=pluginresponse&task=pluginresponsereceived&on=69b60356&pm

Emails are sent out when i manually update the order to confirmed and say notify the customer so just  a paypal trigger issue causing them not to be sent out.

Any further ideas?

Regards
Tony
Parachutes are like minds, they only work when they are open!
http://www.akirastudio.co.uk

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

volksman3

#42
Thanks for the quick response, i have no clue where that came from as that was reported in the error logs, my URL i have in paypals setup under IPN notifications is just:

http://www.naturalz.ca/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component

Not sure where that gets added to the mix?
Parachutes are like minds, they only work when they are open!
http://www.akirastudio.co.uk

optmax


volksman3

Hi Milbo,

Do you have any further insight into my issues - if it helps i did purchase a membership (order number b615021106)

Any help would be most welcome at this time as we have not received any paypal updates and subsequent site email to our customers.

Regards
Tony
Parachutes are like minds, they only work when they are open!
http://www.akirastudio.co.uk