paypal-express 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/paypal.rb +2 -2
- data/paypal-express.gemspec +1 -1
- metadata +8 -11
- data/lib/cert +0 -3538
- data/lib/restclient_with_ssl_support.rb +0 -16
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'restclient'
|
2
|
-
|
3
|
-
module RestClient
|
4
|
-
|
5
|
-
def self.ssl_settings
|
6
|
-
{
|
7
|
-
:verify_ssl => OpenSSL::SSL::VERIFY_PEER,
|
8
|
-
:ssl_ca_file => File.join(File.dirname(__FILE__), 'cert')
|
9
|
-
}
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.post(url, payload, headers={}, &block)
|
13
|
-
Request.execute(ssl_settings.merge(:method => :post, :url => url, :payload => payload, :headers => headers), &block)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|