tc/paypal_adaptive — pull request #41 by tonyla (2012-02-07 18:25:40+00:00)
Title: Errors related to using Paypal API with certificate instead of signature

2 issues that are related.

1. Signature is included in the headers regardless if it is present or not. When you are using a certificate there is no signature and this leads to an error inside net/http#post.

NoMethodError (undefined method `strip' for nil:NilClass):
activesupport (3.1.3) lib/active_support/whiny_nil.rb:48:in `method_missing'
/opt/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:1435:in `block in initialize_http_h
eader'
2. The line
http.ca_file = @ssl_cert_file unless @ssl_cert_file.nil?
Doesn't work for me with Rails 3/Ruby 1.9.3 p0. Implemented an alternate method of setting the SSL cert that should be used.