killbill-cybersource 4.0.10 → 4.0.11
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/NEWS +3 -0
- data/VERSION +1 -1
- data/lib/cybersource/cyber_source_on_demand.rb +1 -1
- data/lib/cybersource/ext/active_merchant/active_merchant.rb +2 -4
- data/pom.xml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db9792953a69106b202f109daf49dc42834880c8
|
|
4
|
+
data.tar.gz: 95a7b770d587d04b1b63b9b44cf2e555357076a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a8efbb283b8fc5f1a41bcdada9182e9cd5d74a08e1ba45a9a003db97d21d32f9df8a199cc09563de6d48d7ff237f219e68ad157f86076f018ebb992acc1e109
|
|
7
|
+
data.tar.gz: a659b3c97b7f34f6a70ce786f1a23935de4e26448ccb3093c480a7c47c46e7953991819fc426632f1ae4cbe05cc8b413373b229366dbb9d319fd20f7c683d123
|
data/Gemfile.lock
CHANGED
data/NEWS
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.0.
|
|
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.
|
|
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.
|
|
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>
|