When i call /paypal/ipn from a browser is ok, when paypall try to send IPN the relay is 404???
x.x.x.x - - [30/Jul/2014:13:09:03 +0200] "POST /paypal/ipn HTTP/1.0" 404 66 "-" "PayPal IPN ( https://www.paypal.com/ipn )" x.x.x.x - - [30/Jul/2014:13:10:25 +0200] "POST /paypal/ipn HTTP/1.0" 404 66 "-" "PayPal IPN ( https://www.paypal.com/ipn )" x.x.x.x - - [30/Jul/2014:13:13:07 +0200] "POST /paypal/ipn HTTP/1.0" 404 66 "-" "PayPal IPN ( https://www.paypal.com/ipn )" x.x.x.x - - [30/Jul/2014:13:14:24 +0200] "GET /paypal/ipn HTTP/1.1" 200 35 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" any advice? The controller is like this: def ipn(): verifyurl = "www.paypal.com" if request.vars.test_ipn != None and request.vars.test_ipn == '1': verifyurl = "www.sandbox.paypal.com" stato="" params="" if len(request.vars.keys()) > 0: params = "cmd=_notify-validate&" + urllib.urlencode(parameters) headers = {"Content-type": "application/x-www-form-urlencoded", "Content-Length": "%s" % (len(params))} stato=None conn = httplib.HTTPSConnection(verifyurl) conn.request("POST", "/cgi-bin/webscr", params, headers ) stato = conn.getresponse() if stato != "VERIFIED": #@todo: figure out how to fail f = open(logfile, "a") f.write("Message not verified: %s\n" %(stato)) f.write(repr(params) + "\n\n") f.close() return None if request.vars.payment_status != 'Completed': f = open(logfile, "a") f.write("Ignore pending transaction:\n") f.write(repr(params) + "\n\n") f.close() return None ......... return None -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.