Hey!
I have a problem with the return of paypal to my website.
/main.php?g2_view=checkoutpaypal.IPN is unable to connect.
I think the problem is that he tries to connect over port 80 but my host won't accept that because of the security risk at port 80. Where can i change the port???
PLEASE HELP!!!!!!!!!!!!!!!!!!
checkout version: 0.4.3
Gallery versie = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Thema 2.6, Embed 1.5
PHP versie = 4.4.7 cgi
Web server = Apache/2.0.46 (CentOS)
Database = mysqlt 4.1.21-standard-log, lock.system=flock
Posts: 4338
I don't think your theory makes sense. Port 80 is used for normal html access to your webserver, which is what the IPN uses too.
Post a link to your website please.
Posts: 4
Well, port 80 was the problem with paypal using virtuemart in joomla, i changed it to 443 and it worked.
the link is http://image.allerimage.nl
Thanks for the help
Posts: 4338
"unable to connect" is the correct message if you try to access ...main.php?g2_view=checkoutpaypal.IPN without supplying all the rest of the information that Paypal provides as part of the Instant Payment Notification.
There's no evidence of anything actually wrong with your website's operation from the information that you've given. What is actually the problem that you're seeing?
(As an aside, port 443 is for HTTPS connections, which Paypal's IPN system doesn't use.)
Posts: 4
The problem is that the payment goes as planned(i receive the payment) but the status of the order won't change to paid and the customer info issn't being updated. The info from paypal doesn't arrive at the website.
Posts: 4338
Check your apache access logs on your webserver. Look for the incoming IPN notification (an access to the main.php?g2_view=checkoutpaypal.IPN) url. You are looking for something along these lines (depending on how the logging is set up:
You are particularly interested in the two numbers at the end - the result code, and the size of the data returned.
Posts: 4338
Ah... actually I mislead you. I've just looked into this in more detail and the "Unable to Connect" message is *not* the correct error message (you should see "Invalid").
What "Unable to Connect" means is that your webserver is not able to make *outgoing* connections back to Paypal. (That might be what you meant in your first post - it's not clear.)
Ideally have your host permit outgoing connections on port 80 (it's not clear to me why this would be a security risk whereas a connection on port 443 isn't), or move hosts.
If you want to hack about with code, the outgoing url is set in checkoutpaypal/IPN.inc, line 65:
- you'll see the original value of $ppurl is set from the configuration options a few lines earlier in the same file. You could try changing http to https I guess. I haven't examined the Gallery2 API for a while so there may be some other changes needed. Also I don't know if a different url is required by paypal or if the IPN callback works over HTTPS - that will be something for you to find out.
Good luck, and please post your results here for future reference.