johnideal-activemerchant 1.4.8 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.8
1
+ 1.4.10
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{activemerchant}
5
- s.version = "1.4.8"
5
+ s.version = "1.4.10"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tobias Luetke"]
9
- s.date = %q{2009-09-14}
9
+ s.date = %q{2009-09-17}
10
10
  s.email = %q{tobi@leetsoft.com}
11
11
  s.extra_rdoc_files = [
12
12
  "README"
@@ -9,11 +9,15 @@ class PaymentechOrbitalRequest
9
9
  @_xml ||= build_request(options)
10
10
  end
11
11
 
12
+ def headers
13
+ @_headers ||= options[:headers] || {}
14
+ end
15
+
12
16
  private
13
17
  # Delegate these to options hash.
14
18
  [:login, :password, :merchant_id,
15
- :bin, :terminal_id, :currency_code,
16
- :currency_exponent, :customer_ref_num,
19
+ :bin, :terminal_id, :currency_code,
20
+ :currency_exponent, :customer_ref_num,
17
21
  :order_id].each do |attr|
18
22
  define_method(:"#{attr}") do
19
23
  options[:"#{attr}"]
@@ -113,7 +113,7 @@ module ActiveMerchant #:nodoc:
113
113
  end
114
114
 
115
115
  def headers
116
- self.class.headers
116
+ self.class.headers.merge(request.headers)
117
117
  end
118
118
 
119
119
  def endpoint_url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: johnideal-activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-14 00:00:00 -07:00
12
+ date: 2009-09-17 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15