PayPal IPN problem

PayPal IPN problem

by John Willis -
Number of replies: 4

I've set the IPN URL in PayPal to http://[my domain name here]/enrol/paypal/ipn.php

I have been able to access this URL from a browser and get the "Sorry, you can't use this script that way" message.

But when I actually use PayPal to attempt to enroll in the course, I get the following output in apache's access log:

 

66.211.170.66 - - [23/Nov/2011:15:54:34 +0000] "POST /enrol/paypal/ipn.php HTTP/1.0" 404 32648 "-" "-"
66.211.170.66 - - [23/Nov/2011:15:54:47 +0000] "POST /enrol/paypal/ipn.php HTTP/1.0" 404 32648 "-" "-"
66.211.170.66 - - [23/Nov/2011:15:55:10 +0000] "POST /enrol/paypal/ipn.php HTTP/1.0" 404 32648 "-" "-"
66.211.170.66 - - [23/Nov/2011:15:55:52 +0000] "POST /enrol/paypal/ipn.php HTTP/1.0" 404 32648 "-" "-"
66.211.170.66 - - [23/Nov/2011:15:57:15 +0000] "POST /enrol/paypal/ipn.php HTTP/1.0" 404 32648 "-" "-"
66.211.170.66 - - [23/Nov/2011:15:59:58 +0000] "POST /enrol/paypal/ipn.php HTTP/1.0" 404 32648 "-" "-"

I have the encoding in PayPal set to UTF-8.

 

Any ideas?

Average of ratings: -
In reply to John Willis

Re: PayPal IPN problem

by maer israel -

Hi, I have the same problem.  Paypal ends up shutting off IPN periodically.

Some others have reported the same issue.  We're all using Moodle 2.1

Sadly, we haven't gotten any traction on the problem yet.

In reply to maer israel

Re: PayPal IPN problem

by Marijan Lovenjak -

Hi,
Try with this:
http://my domainname here/moodle/enrol/paypal/ipn.php
(must insert the "/moodle/")

or try with test:
Sign Up for Access to the Sandbox Test Environment on:
https://developer.paypal.com
select: Test Tools, Instant Payment Notification (IPN) Simulator
change options until you get the solution.

Have a nice day.

In reply to Marijan Lovenjak

Re: PayPal IPN problem

by John Willis -

Turns out Moodle was misconfigured. The PayPal account e-mail was misspelled.

FWIW, we have our Moodle instance located in /var/www/html and not in /var/www/html/moodle.

The problem has been solved! I hope that others experiencing similar problems will find solutions soon as well.

 

Thanks,

JPW

In reply to maer israel

Re: PayPal IPN problem

by James Snell -

Those having IPN problems should check out the discussion topic here.

Similarly, here's a development ticket that you may also find worth taking a look at.

I was having some nasty woes getting Paypal enrollments to function consistently and eventually had to make a small but significant change to the ipn script in the Paypal enrollment module. It's helped me massively.