VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: carsten888 on June 15, 2016, 19:29:10 PM

Title: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 15, 2016, 19:29:10 PM
I keep getting these emails from paypal:

QuotePlease check your server that handles PayPal Instant Payment Notification (IPN) messages. Messages sent to the following URL(s) are not being received:

http://www.domain.com/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=

If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information.

Once you or your service provider fix this problem, you or your service provider can resend the failed messages from the IPN History page. If this problem continues, PayPal may disable the IPN feature for your account.

This has worked fine for many years, and since 2 weeks or so I get these emails dayli.

I contacted my host, they can't find anything.
I read the VM documentation but searching for 'IPN' does not return any clickable searchresults.
I read this FAQ: http://forum.virtuemart.net/index.php?topic=122595.0. So I don't have to configure anything on the paypal site.
I searched for an hour but can't find if this url is correct:
index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=

Is this url correct?

I checked the VM log:
Quote2016-06-15 12:56:47 MESSAGE plgVmConfirmedOrder: order number: QL5905956
2016-06-15 12:56:47 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 24 47
so the IPN got through, but the order status was still 'pending'.
I have to check for each order in paypal if the order was paid, then manually confirm if not. Some payment go without problems others not.

How can I get my webshop working again?

VM 3.0.14
J  3.5.1   
Title: Re: PayPal Instant Payment Notification Disabled
Post by: jenkinhill on June 15, 2016, 20:21:33 PM
You should be using VM3.0.16 with Joomla 3.5.1 unless you applied the patch to fix the mail issue introduced with J3.5.1 - http://forum.virtuemart.net/index.php?topic=133760.0
Title: Re: PayPal Instant Payment Notification Disabled
Post by: GJC Web Design on June 15, 2016, 22:23:43 PM
and yes.. the url is correct

from the Paypal plug

$post_variables['notify_url'] = JURI::root() . 'index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component' . '&lang=' . vRequest::getCmd('lang', '');

the error will be caused by it not returning a 200 response

what response (header) do you get when u try the url?
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 16, 2016, 08:33:27 AM
thanks for the quick replies.

@jenkinhill
I just updated to .16.

@GJC Web Design

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr">
<head>
  <base href="http://www.domain.com/index.php" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="description" content="Joomla extensions" />
  <meta name="generator" content="Joomla! - Open Source Content Management" />
  <title>domain</title>
  <link href="/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link rel="stylesheet" href="/components/com_virtuemart/assets/css/vm-ltr-common.css?vmver=9204" type="text/css" />
  <link rel="stylesheet" href="/components/com_virtuemart/assets/css/vm-ltr-site.css?vmver=9204" type="text/css" />
  <link rel="stylesheet" href="/components/com_virtuemart/assets/css/vm-ltr-reviews.css?vmver=9204" type="text/css" />
  <script src="/media/jui/js/jquery.min.js" type="text/javascript"></script>
  <script src="/media/jui/js/jquery-noconflict.js" type="text/javascript"></script>
  <script src="/media/jui/js/jquery-migrate.min.js" type="text/javascript"></script>

<link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" />
</head>
<body class="contentpane">
<div id="system-message-container">
</div>


</body>
</html>


Please note that it sometimes works flawless, and sometimes status stays pending. (debuggers nightmare)
In my previous post is a part of the log. That was one order which was paid for in paypal, but status stayed pending in VM. There where no more lines. Does that mean the IPN from paypal did not get through?



Title: Re: PayPal Instant Payment Notification Disabled
Post by: GJC Web Design on June 16, 2016, 14:17:24 PM
No- I meant the headers returned to paypal  -- look on Firebug Net tab to see what is returned as a status to Paypal

200, 500, 303 etc - must be 200
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 17, 2016, 09:54:48 AM
Quotelook on Firebug Net tab
Where can I find that?
Its not in the 'tools' section.
Title: Re: PayPal Instant Payment Notification Disabled
Post by: GJC Web Design on June 17, 2016, 10:04:56 AM
firebug, firefox webmaster tools or use an online checker

http://tools.seobook.com/server-header-checker/

Date: Fri, 17 Jun 2016 08:03:48 GMT

Server: Apache

X-Powered-By: PHP/7.0.5, PleskLin

P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"

Content-Encoding: gzip

Expires: Wed, 17 Aug 2005 00:00:00 GMT

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Pragma: no-cache

Last-Modified: Fri, 17 Jun 2016 08:03:49 GMT

Connection: close


Transfer-Encoding: chunked

Content-Type: text/html; charset=utf-8


200 OK
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 17, 2016, 12:25:50 PM
I see. I'm using chrome so used the tool that is in chrome.

index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component

Did I test the right way? Should I PM the domain to you?
Title: Re: PayPal Instant Payment Notification Disabled
Post by: GJC Web Design on June 17, 2016, 14:16:50 PM
your making this 100 times more complex than it is

just use an online header checker.-.. google
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 20, 2016, 08:01:42 AM
I'm sorry, I didn't know about online-header-check-tool.

HTTP/1.1 200 OK
Date: Mon, 20 Jun 2016 06:00:13 GMT
Set-Cookie: d85de0340d6c0f81dece9375ac5e53da=q0g6mkgqr62tfji5ga8qig9h27; path=/; HttpOnly
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Wed, 17 Aug 2005 00:00:00 GMT
Last-Modified: Mon, 20 Jun 2016 06:00:04 GMT
Cache-Control: no-cache
Pragma: no-cache
ETag: http://www.domain.com/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 589
Content-Type: text/html; charset=utf-8
X-Backend: web13
Server: PCX/No-Cache
Age: 0
X-Cache-Hit: No
X-Cache-Hits: 0
Accept-Ranges: bytes
Connection: close

Title: Re: PayPal Instant Payment Notification Disabled
Post by: GJC Web Design on June 20, 2016, 10:43:12 AM
response is fine->   

HTTP/1.1 200 OK

so this must mean the problem is intermittent -- u need to switch Paypal plugin logging on and study the logs when ever you get a complaint from paypal

check server logs for any fatals etc.. it could be that the server fatals when trying to update/create the order invoice etc
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 21, 2016, 09:02:06 AM
Quoteu need to switch Paypal plugin logging on and study the logs when ever you get a complaint from paypal
will do. Is this the correct setting?
(http://i1153.photobucket.com/albums/p508/carsten888/Knipsel_zpsu2s7w58v.png)
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 21, 2016, 09:37:36 AM
meanwhile I was trying to find out if maybe Paypal has more info on why the ipn's are failing. I found that the ipn's which failed have error 500. 16 times it tried to send the ipn and failed.
(http://i1153.photobucket.com/albums/p508/carsten888/Knipsel_zps6ia945af.png)

500 is server error. What does that mean in this context? Paypal can't reach the server (that would be an 404?) or the server responded with an error code after receiving the ipn?

(Thanks for this support!)
Title: Re: PayPal Instant Payment Notification Disabled
Post by: GJC Web Design on June 21, 2016, 10:58:28 AM
no - it means the server was reached but then a 500 server error was thrown
u need to find the errors in your server logs
does the pdf invoice creation work when u manually set an order to confirmed?

etc etc

test and searching is all u can do

settings for logging correct
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on June 21, 2016, 12:03:33 PM
pdf-generation works fine when confirming an order.

thank you.

Quoteu need to find the errors in your server logs
ok. *creating new ticket at host*
Title: Re: PayPal Instant Payment Notification Disabled
Post by: carsten888 on July 09, 2016, 08:25:52 AM
update:
host replied 'we don't know'
then everything started working again as if nothing ever happened....  ???