solisoft-paypal_nvp 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -0,0 +1,36 @@
1
+ = Paypal NVP
2
+
3
+ Paypal NVP allow to connect your Ruby on Rails application to the Paypal NVP API.
4
+
5
+ == Installation
6
+
7
+ The recommended way is that you get the gem:
8
+
9
+ sudo gem install paypal_nvp
10
+
11
+ PaypalNVP need a paypal.yml file in your config directory.
12
+
13
+ # All those fields are mandatory
14
+
15
+ sandbox:
16
+ url: "https://api-3t.sandbox.paypal.com/nvp"
17
+ user: "o.bonn_1237393081_biz_api1.solisoft.net"
18
+ pass: "1237393093"
19
+ cert: "AU2Yv5COwWPCfeYLv34Z766F-gfNAzX6LaQE6VZkHMRq35Gmite-bMXu"
20
+
21
+ live:
22
+ url: "https://api-3t.paypal.com/nvp"
23
+ user: "o.bonn_1237393081_biz_api1.solisoft.net"
24
+ pass: "1237393093"
25
+ cert: "AU2Yv5COwWPCfeYLv34Z766F-gfNAzX6LaQE6VZkHMRq35Gmite-bMXu"
26
+
27
+ == Example usage
28
+
29
+ p = PaypalNVP.new(true) # true mean "use sandbox"
30
+ data = {
31
+ :method => "MyPaypalMethod",
32
+ :amt => 55
33
+ # other params needed
34
+ }
35
+ result = p.call_paypal(data) # will return a hash
36
+ puts result["ACK"] # Success
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('paypal_nvp', '0.1.0') do |p|
5
+ Echoe.new('paypal_nvp', '0.1.1') do |p|
6
6
  p.description = "Paypal NVP API Class."
7
7
  p.url = "http://github.com/solisoft/paypal_nvp"
8
8
  p.author = "Olivier BONNAURE - Direct Interactive LLC"
data/lib/paypal_nvp.rb CHANGED
@@ -10,7 +10,6 @@ class PaypalNVP
10
10
  @user = config[type]["user"]
11
11
  @pass = config[type]["pass"]
12
12
  @cert = config[type]["cert"]
13
- reset
14
13
  end
15
14
 
16
15
  def call_paypal(data)
data/paypal_nvp.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{paypal_nvp}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Olivier BONNAURE - Direct Interactive LLC"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{Paypal NVP API Class.}
11
11
  s.email = %q{o.bonnaure@directinteractive.com}
12
12
  s.extra_rdoc_files = ["lib/paypal_nvp.rb", "README.rdoc"]
13
- s.files = ["init.rb", "lib/paypal_nvp.rb", "Manifest", "paypal_nvp.gemspec", "Rakefile", "README.rdoc"]
13
+ s.files = ["init.rb", "lib/paypal_nvp.rb", "Manifest", "Rakefile", "README.rdoc", "paypal_nvp.gemspec"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://github.com/solisoft/paypal_nvp}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Paypal_nvp", "--main", "README.rdoc"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solisoft-paypal_nvp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier BONNAURE - Direct Interactive LLC
@@ -26,9 +26,9 @@ files:
26
26
  - init.rb
27
27
  - lib/paypal_nvp.rb
28
28
  - Manifest
29
- - paypal_nvp.gemspec
30
29
  - Rakefile
31
30
  - README.rdoc
31
+ - paypal_nvp.gemspec
32
32
  has_rdoc: true
33
33
  homepage: http://github.com/solisoft/paypal_nvp
34
34
  post_install_message: