10 May 2008, 20:30
Generic-user-small

Federico Gonzalez Lutteroth (1 post)

Hi,

I implemented the solution for receiving IPN’s in the website payments standard option. Everything was working fine when I was testing with the sandbox, but when i tryied to comunicate with the real server i get a “Errno::ECONNRESET (Connection reset by peer):” error, when doing the verification.

Here is the code:

  def ipnConfirm
    uri = URI.parse("https://www.paypal.com/cgi-bin/webscr")
    status = nil
    Net::HTTP.start(uri.host, uri.port) do |request|
        status = request.post(uri.path, @raw + "&cmd=_notify-validate").body
    end
    logger.debug "status = '#{status}'"
    status == "VERIFIED"
  end

The error is stated as being on lines 4 and 5. (the Net:HTTP line, and the next one.) Could this be because i don’t have a SSL certificate?

thanks.

13 May 2008, 12:53
Generic-user-small

Joe Fair (2 posts)

Federico,

Can you confirm that you get get to the paypal site from where you are running? Try doing a ping www.paypal.com, or better yet, wget https://www.paypal.com/cgi-bin/webscr and let us know.

Thanks, Joe

  You must be logged in to comment