killbill-cybersource 4.0.10 → 4.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58cb83423a65c33db773647d189febf28e53c799
4
- data.tar.gz: 047b2949668e415baa08694d5adda58f28c78abe
3
+ metadata.gz: db9792953a69106b202f109daf49dc42834880c8
4
+ data.tar.gz: 95a7b770d587d04b1b63b9b44cf2e555357076a5
5
5
  SHA512:
6
- metadata.gz: 228be79b3eb1f98e22367db93ec779e54fe67c529e9b1cb827f1e94cd818a0933f3fa2c36c4a8d45ce89a14db9700005547863540fb986414d9daea9e7ef343d
7
- data.tar.gz: 7febfe2b9798496d89af92ea4b5da908cedf79d516f72b740f06dd4890aa8ac92af21c386cc775c2bbd4be507c473b7b9e80eff997300af3aa98b4f50d2ad416
6
+ metadata.gz: 4a8efbb283b8fc5f1a41bcdada9182e9cd5d74a08e1ba45a9a003db97d21d32f9df8a199cc09563de6d48d7ff237f219e68ad157f86076f018ebb992acc1e109
7
+ data.tar.gz: a659b3c97b7f34f6a70ce786f1a23935de4e26448ccb3093c480a7c47c46e7953991819fc426632f1ae4cbe05cc8b413373b229366dbb9d319fd20f7c683d123
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-cybersource (4.0.10)
4
+ killbill-cybersource (4.0.11)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.48.0)
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 4.0.11
2
+ Bugfix for OnDemand API
3
+
1
4
  4.0.10
2
5
  Fix parsing of AVS and CVV responses
3
6
  Specify User-Agent, X-Request-Id and Content-Type headers to CyberSource
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.10
1
+ 4.0.11
@@ -27,7 +27,7 @@ module Killbill #:nodoc:
27
27
  headers = {
28
28
  # Don't use symbols or it will confuse Net/HTTP
29
29
  'Authorization' => 'Basic ' + Base64.encode64("#{@config[:username]}:#{@config[:password]}").chomp,
30
- 'User-Agent' => ActiveMerchant::Billing::CyberSourceGateway.ua
30
+ 'User-Agent' => ActiveMerchant::Billing::CyberSourceGateway.user_agent
31
31
  }
32
32
  headers['X-Request-Id'] = ActiveMerchant::Billing::CyberSourceGateway.x_request_id unless ActiveMerchant::Billing::CyberSourceGateway.x_request_id.blank?
33
33
 
@@ -5,8 +5,6 @@ module ActiveMerchant
5
5
 
6
6
  class CyberSourceGateway
7
7
 
8
- cattr_reader :ua
9
-
10
8
  def self.x_request_id
11
9
  # See KillbillMDCInsertingServletFilter
12
10
  org::slf4j::MDC::get('req.requestId') rescue nil
@@ -151,7 +149,7 @@ module ActiveMerchant
151
149
  :cvv_result => response['cvCode'])
152
150
  end
153
151
 
154
- def user_agent
152
+ def self.user_agent
155
153
  @@ua ||= JSON.dump({
156
154
  :bindings_version => KB_PLUGIN_VERSION,
157
155
  :lang => 'ruby',
@@ -167,7 +165,7 @@ module ActiveMerchant
167
165
 
168
166
  headers = {}
169
167
  headers['Content-Type'] = options[:content_type]
170
- headers['User-Agent'] = user_agent
168
+ headers['User-Agent'] = self.class.user_agent
171
169
  headers['X-Request-Id'] = options[:x_request_id] unless options[:x_request_id].blank?
172
170
  headers
173
171
  end
data/pom.xml CHANGED
@@ -25,7 +25,7 @@
25
25
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
26
26
  <artifactId>cybersource-plugin</artifactId>
27
27
  <packaging>pom</packaging>
28
- <version>4.0.10</version>
28
+ <version>4.0.11</version>
29
29
  <name>cybersource-plugin</name>
30
30
  <url>http://github.com/killbill/killbill-cybersource-plugin</url>
31
31
  <description>Plugin for accessing Cybersource as a payment gateway</description>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-cybersource
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.10
4
+ version: 4.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team