Paypal and Ruby troubles

Manfred Stienstra, 19 Jul 2006, 12:17 in ruby on rails (edit).

Last week our Paypal integration for Dr Stat suddently started acting up. During posts to the notification URL it threw OpenSSL::SSL::SSLError (unknown protocol) errors. I frantically began searching the web for problems with OpenSSL and Ruby, but I couldn’t find anything.

The solution turned out to be really simple. The Paypal gem had been updated and now supports SSL connections. Apparently it raises exceptions when you don’t use SSL now. So I changed Paypal::Notification.ipn_url from the HTTP to the HTTPS url and everything started working again.

Comments

  1. Josh Peek 60 days later: (delete | show email)

    Dude, I owe you my live! Maybe just a few bucks, :)

  2. Tom Werner 207 days later: (delete)

    You just saved me a bunch of time wasting, headache filled hours. Thanks!

  3. J. B. Rainsberger 439 days later: (delete | show email)

    Thanks for this. It helps a great deal. Take care.

Add your comment

In order to fight spam on this blog, posting comments from a browser without javascript is currently not supported.