paypal_nvp 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/paypal_nvp.rb +2 -1
- data/paypal_nvp.gemspec +1 -1
- metadata +1 -1
data/lib/paypal_nvp.rb
CHANGED
@@ -5,13 +5,14 @@ class PaypalNVP
|
|
5
5
|
base.extend ClassMethods
|
6
6
|
end
|
7
7
|
|
8
|
-
def initialize(sandbox = false)
|
8
|
+
def initialize(sandbox = false, extras = {})
|
9
9
|
config = YAML.load_file("#{RAILS_ROOT}/config/paypal.yml")
|
10
10
|
type = sandbox ? "sandbox" : "live"
|
11
11
|
@url = config[type]["url"]
|
12
12
|
@user = config[type]["user"]
|
13
13
|
@pass = config[type]["pass"]
|
14
14
|
@cert = config[type]["cert"]
|
15
|
+
@extras = extras
|
15
16
|
end
|
16
17
|
|
17
18
|
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.
|
5
|
+
s.version = "0.1.4"
|
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"]
|