Author Topic: PayPal IPN fails in v2.6.16  (Read 13059 times)

falko1

  • Beginner
  • *
  • Posts: 5
  • A beginner
Re: PayPal IPN fails in v2.6.16
« Reply #30 on: March 10, 2015, 20:20:15 pm »
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

  • Jr. Member
  • **
  • Posts: 91
    • Akira Studio
Re: PayPal IPN fails in v2.6.16
« Reply #31 on: March 10, 2015, 21:27:44 pm »
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

  • Jr. Member
  • **
  • Posts: 91
    • Akira Studio
Re: PayPal IPN fails in v2.6.16
« Reply #32 on: March 10, 2015, 21:31:53 pm »
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

  • Jr. Member
  • **
  • Posts: 96
Re: PayPal IPN fails in v2.6.16
« Reply #33 on: March 10, 2015, 22:40:08 pm »
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

  • Jr. Member
  • **
  • Posts: 96
Re: PayPal IPN fails in v2.6.16
« Reply #34 on: March 10, 2015, 23:34:56 pm »
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

  • Beginner
  • *
  • Posts: 3
Re: PayPal IPN fails in v2.6.16
« Reply #35 on: March 11, 2015, 08:29:11 am »
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

  • Beginner
  • *
  • Posts: 49
Re: PayPal IPN fails in v2.6.16
« Reply #36 on: March 11, 2015, 11:08:28 am »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 8878
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: PayPal IPN fails in v2.6.16
« Reply #37 on: March 11, 2015, 16:33:34 pm »
Nice, great it works now for most people.

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
Code: [Select]
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

driver_wedge

  • Beginner
  • *
  • Posts: 49
Re: PayPal IPN fails in v2.6.16
« Reply #38 on: March 11, 2015, 17:07:08 pm »
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

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2009
    • alatak.net
Re: PayPal IPN fails in v2.6.16
« Reply #39 on: March 11, 2015, 19: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

  • Jr. Member
  • **
  • Posts: 91
    • Akira Studio
Re: PayPal IPN fails in v2.6.16
« Reply #40 on: March 11, 2015, 22:30:44 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 8878
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: PayPal IPN fails in v2.6.16
« Reply #41 on: March 11, 2015, 22:54:21 pm »
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

volksman3

  • Jr. Member
  • **
  • Posts: 91
    • Akira Studio
Re: PayPal IPN fails in v2.6.16
« Reply #42 on: March 11, 2015, 22:58:43 pm »
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

  • Jr. Member
  • **
  • Posts: 96
Re: PayPal IPN fails in v2.6.16
« Reply #43 on: March 12, 2015, 11:37:23 am »
%5F is underscore

volksman3

  • Jr. Member
  • **
  • Posts: 91
    • Akira Studio
Re: PayPal IPN fails in v2.6.16
« Reply #44 on: March 13, 2015, 01:40:23 am »
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